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:
@ -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,
|
||||
|
Reference in New Issue
Block a user