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

Diff of /smsdaemon/serialport/SerialPort.cpp

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

smsdaemon/SerialPort.cpp revision 26 by torben, Mon Jun 9 18:15:53 2008 UTC smsdaemon/serialport/SerialPort.cpp revision 114 by torben, Sun Nov 2 20:14:20 2008 UTC
# Line 31  Line 31 
31  #include <sys/time.h>  #include <sys/time.h>
32  #include <signal.h>  #include <signal.h>
33  #include <strings.h>  #include <strings.h>
34    #include <string.h>
35    #include <stdlib.h>
36    
37  namespace  namespace
38  {  {
# Line 1227  SerialPort::SerialPortImpl::ReadByte(con Line 1229  SerialPort::SerialPortImpl::ReadByte(con
1229          //          //
1230          // Increase the elapsed number of milliseconds.          // Increase the elapsed number of milliseconds.
1231          //          //
1232          int elapsed_ms = ( elapsed_time.tv_sec  * MILLISECONDS_PER_SEC +          unsigned int elapsed_ms = ( elapsed_time.tv_sec  * MILLISECONDS_PER_SEC +
1233                             elapsed_time.tv_usec / MICROSECONDS_PER_MS ) ;                             elapsed_time.tv_usec / MICROSECONDS_PER_MS ) ;
1234          //          //
1235          // If more than msTimeout milliseconds have elapsed while          // If more than msTimeout milliseconds have elapsed while
# Line 1290  SerialPort::SerialPortImpl::Read( Serial Line 1292  SerialPort::SerialPortImpl::Read( Serial
1292          //          //
1293          dataBuffer.reserve( numOfBytes ) ;          dataBuffer.reserve( numOfBytes ) ;
1294          //          //
1295          for(int i=0; i<numOfBytes; ++i)          for(unsigned int i=0; i<numOfBytes; ++i)
1296          {          {
1297              dataBuffer.push_back( ReadByte(msTimeout) ) ;              dataBuffer.push_back( ReadByte(msTimeout) ) ;
1298          }          }

Legend:
Removed from v.26  
changed lines
  Added in v.114

  ViewVC Help
Powered by ViewVC 1.1.20