/[projects]/smsdaemon/SerialPort.cpp
ViewVC logotype

Diff of /smsdaemon/SerialPort.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 35 by torben, Mon Jun 9 18:15:53 2008 UTC revision 36 by torben, Tue Jun 10 15:34:19 2008 UTC
# Line 1227  SerialPort::SerialPortImpl::ReadByte(con Line 1227  SerialPort::SerialPortImpl::ReadByte(con
1227          //          //
1228          // Increase the elapsed number of milliseconds.          // Increase the elapsed number of milliseconds.
1229          //          //
1230          int elapsed_ms = ( elapsed_time.tv_sec  * MILLISECONDS_PER_SEC +          unsigned int elapsed_ms = ( elapsed_time.tv_sec  * MILLISECONDS_PER_SEC +
1231                             elapsed_time.tv_usec / MICROSECONDS_PER_MS ) ;                             elapsed_time.tv_usec / MICROSECONDS_PER_MS ) ;
1232          //          //
1233          // If more than msTimeout milliseconds have elapsed while          // If more than msTimeout milliseconds have elapsed while
# Line 1290  SerialPort::SerialPortImpl::Read( Serial Line 1290  SerialPort::SerialPortImpl::Read( Serial
1290          //          //
1291          dataBuffer.reserve( numOfBytes ) ;          dataBuffer.reserve( numOfBytes ) ;
1292          //          //
1293          for(int i=0; i<numOfBytes; ++i)          for(unsigned int i=0; i<numOfBytes; ++i)
1294          {          {
1295              dataBuffer.push_back( ReadByte(msTimeout) ) ;              dataBuffer.push_back( ReadByte(msTimeout) ) ;
1296          }          }

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.20