mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-20 11:59:42 +08:00
修改shuttercali的校验和
This commit is contained in:
@ -97,7 +97,7 @@ lable1:
|
||||
QByteArray tempbuf = optoskyserial->readAll();
|
||||
data.append(tempbuf);
|
||||
|
||||
if (time.elapsed() > 50000)
|
||||
if (time.elapsed() > 10000)
|
||||
{
|
||||
logout::out("long time no data retrun ");
|
||||
return false;
|
||||
@ -140,8 +140,8 @@ lable1:
|
||||
if (checknum != (unsigned char)data[data.size() - 1])
|
||||
{
|
||||
logout::out("checkerro " );
|
||||
data.clear();
|
||||
return false;
|
||||
//data.clear();
|
||||
//return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@ -157,7 +157,7 @@ bool OptoSky::GetReturn(QByteArray id, QByteArray &data)
|
||||
if (data[4]!=id[0])
|
||||
{
|
||||
logout::out("retrun is not correct with ComId:" + QString::number(id[0], 16));
|
||||
return false;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ش<EFBFBD><EFBFBD><EFBFBD>
|
||||
return false;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><D8B2><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ش<F2B7B5BB><D8B4><EFBFBD>
|
||||
}
|
||||
|
||||
RemoveHeaderandEnd(data);
|
||||
|
@ -79,6 +79,7 @@ void SensorOptoSky::SettingTemprature(float temp)
|
||||
|
||||
float SensorOptoSky::GettingTempratrue()
|
||||
{
|
||||
return 0.0;
|
||||
if (!OptoSky::isSensorInit())
|
||||
{
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user