--- branches/linux-serial/Serial.h 2007/02/04 21:33:40 45 +++ branches/linux-serial/Serial.h 2007/02/04 23:11:02 46 @@ -11,6 +11,7 @@ #ifndef _WINDOWS // inline void Sleep(int x) { usleep(x*1000);} +#include #endif @@ -21,13 +22,13 @@ DCB mDcbRestore; #else int mFiledescriptor; + termios mOldtio; #endif char* mPortstr; int mBitrate; bool mIsopen; - //void printByte(char* description, unsigned char byte); public: CSerial(); CSerial(char* port, int bitrate); @@ -53,6 +54,7 @@ //UCVector readBytes(int maxcount); protected: + void printByte(char* description, unsigned char byte); #ifdef _WINDOWS void openWindows(); #else