Commit fdedcea3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

ComPort: fix warnings

parent 8f2d9292
......@@ -19,8 +19,9 @@
#include "ComPort.h"
// --------------------------------------------------------------------------------
// - termios ,
#ifndef CMSPAR
#define CMSPAR 010000000000 /* mark or space (stick) parity */
#warning "I'm define CMSPAR for stick parity!"
#endif
// --------------------------------------------------------------------------------
using namespace UniSetTypes;
using namespace std;
......@@ -306,7 +307,7 @@ void ComPort::cleanupChannel()
{
k = ::read(fd,tmpbuf,sizeof(tmpbuf));
}
while( k>0 && k >= sizeof(tmpbuf) );
while( k>0 );
// #warning , - ...
// curSym = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment