fix bug
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#include <serial/serial.h>
|
||||
#include <options/options.h>
|
||||
#include <log.h>
|
||||
using namespace std;
|
||||
#include <iostream>
|
||||
|
||||
#define LOG_LEVEL LOG_NONE
|
||||
#include <log.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#ifdef Windows
|
||||
|
||||
Serial::Serial(UINT baud, char parity, UINT databits, UINT stopsbits, DWORD dwCommEvents) :
|
||||
@@ -171,7 +174,7 @@ bool Serial::ReadData(unsigned char *buffer, unsigned int length) {
|
||||
return bResult;
|
||||
}
|
||||
|
||||
#else defined(Linux)
|
||||
#elif defined(Linux)
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user