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

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

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

revision 46 by torben, Sun Feb 4 21:22:44 2007 UTC revision 47 by torben, Mon Feb 5 00:48:02 2007 UTC
# Line 42  std::vector<unsigned char> CSlipSerial:: Line 42  std::vector<unsigned char> CSlipSerial::
42    
43          while ( /*bytesReady() >0 &&*/ state != SlipStopped)          while ( /*bytesReady() >0 &&*/ state != SlipStopped)
44          {          {
45                  unsigned char data = readByte();                  int c = readByte();
46                    if (c == -1)
47                    {
48                            Sleep(1);
49                            continue;
50                    }
51                    unsigned char data = (unsigned char) c;
52                  switch (state)                  switch (state)
53                  {                  {
54                          case SlipNormal:                          case SlipNormal:

Legend:
Removed from v.46  
changed lines
  Added in v.47

  ViewVC Help
Powered by ViewVC 1.1.20