Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf.

This commit is contained in:
2021-09-15 20:46:06 +02:00
parent 02bde1133e
commit d366b3ca22
9 changed files with 25 additions and 8 deletions

View File

@ -41,7 +41,7 @@ ReturnValue_t ArduinoDH::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
void ArduinoDH::doTransition(Mode_t modeFrom, Submode_t submodeFrom) {
if (mode == _MODE_TO_NORMAL) {
std::cout<<"Arduino device -> Transition to Normal mode"<<std::endl;
std::cout<<"Arduino device is in Normal mode"<<std::endl;
} else {
setMode(_MODE_TO_NORMAL);
}
@ -127,7 +127,7 @@ ReturnValue_t ArduinoDH::interpretDeviceReply(DeviceCommandId_t id,
}
// All data are here printed to monitor from the three vectors of data measurements.
printf(
/*printf(
"\n***********************************************************************************************\n");
printf("TEMPERATURE parameters are: ");
@ -230,7 +230,7 @@ ReturnValue_t ArduinoDH::interpretDeviceReply(DeviceCommandId_t id,
printf("\nTimestamp: %u", vecAcc[3 * k + 2].Timestamp[i]);
}
printf("\nEnd: %7s", vecAcc[3 * k + 2].end_string);
}
}*/
std::cout << "\n\nEnd reading data.\n" << std::endl;