/[H7]/branches/linux-serial/Serial.cpp
ViewVC logotype

Diff of /branches/linux-serial/Serial.cpp

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

revision 54 by torben, Mon Feb 5 10:10:18 2007 UTC revision 55 by torben, Mon Feb 5 10:11:47 2007 UTC
# Line 244  void CSerial::writeByte(unsigned char ou Line 244  void CSerial::writeByte(unsigned char ou
244  int CSerial::convertBaudrate(Baudrate rate)  int CSerial::convertBaudrate(Baudrate rate)
245  {  {
246          int retval=0;          int retval=0;
         std::cout << "Rate:" << rate << std::endl;  
247  #ifdef _MSC_VER  #ifdef _MSC_VER
248          switch( rate )          switch( rate )
249          {          {
# Line 275  int CSerial::convertBaudrate(Baudrate ra Line 274  int CSerial::convertBaudrate(Baudrate ra
274                  case Baud57600:                  case Baud57600:
275                          retval = 57600;                          retval = 57600;
276                          break;                          break;
277                  case Baud11520:                  case Baud115200:
278                          retval = 115200;                          retval = 115200;
279                          break;                                            break;                  
280          }          }
# Line 315  int CSerial::convertBaudrate(Baudrate ra Line 314  int CSerial::convertBaudrate(Baudrate ra
314          }          }
315  #endif  #endif
316    
         std::cout << "Rate: " << retval << "/" << B9600 << std::endl;  
317          return retval;          return retval;
318  }  }
319    

Legend:
Removed from v.54  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.20