Parent Directory | Revision Log | Patch
revision 44 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: |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |