修复连续采集时没有时间间隔导致通讯失败从而导致无有法正常连续采集的问题 修改如下
This commit is contained in:
@ -18,7 +18,7 @@ u_char BufferFortempWrite[1000];
|
||||
// MySerialWrite=nullptr;
|
||||
SERIALWRITE MySerialWrite = nullptr;
|
||||
SERIALREAD MySerialRead = nullptr;
|
||||
bool ISIS11Init = false;
|
||||
bool isIS3Init = false;
|
||||
uint16_t crc16(const uint8_t *data, size_t len, uint16_t polynomial)
|
||||
{
|
||||
uint16_t i, j, tmp, CRC16;
|
||||
@ -211,7 +211,7 @@ void InitFunction(SERIALWRITE a, SERIALWRITE readfunc)
|
||||
MySerialRead = readfunc;
|
||||
//std::string temp = "01";
|
||||
//a((u_char *)temp.c_str(), 2);
|
||||
ISIS11Init = true;
|
||||
isIS3Init = true;
|
||||
}
|
||||
|
||||
u_char *GetDataBufferPTR()
|
||||
@ -220,7 +220,7 @@ u_char *GetDataBufferPTR()
|
||||
}
|
||||
bool isSensorInit()
|
||||
{
|
||||
return ISIS11Init;
|
||||
return isIS3Init;
|
||||
}
|
||||
|
||||
void CoverLittleAndBig(char *data, int lenth)
|
||||
|
Reference in New Issue
Block a user