The datapool variables definition has been corrected. The controller is now working apparently well. It still needs to be tested with real data and devices.

This commit is contained in:
2021-09-15 19:17:34 +02:00
parent 510949b54d
commit 02bde1133e
10 changed files with 51 additions and 119 deletions

View File

@ -68,13 +68,25 @@ ReturnValue_t ArduinoDH::scanForReply(const uint8_t *start, size_t len,
if (len == *foundLen){
// start character: '['
if (*start == 91 ){
return APERIODIC_REPLY;
return APERIODIC_REPLY;
} else{
return DeviceHandlerIF::LENGTH_MISSMATCH;
}
} else {
return IGNORE_REPLY_DATA;
}
/*if (len == *foundLen){
// start character: '['
if (*start == 91 ){
if (*start + 9 == 49) {
return APERIODIC_REPLY;
}
} else{
return DeviceHandlerIF::LENGTH_MISSMATCH;
}
} else {
return IGNORE_REPLY_DATA;
}*/
}
ReturnValue_t ArduinoDH::interpretDeviceReply(DeviceCommandId_t id,