From 303f5380761ee8a04721d4692c70757ec9369acd Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 8 Jul 2022 17:11:21 +0200 Subject: [PATCH] countdown based reply handling --- mission/devices/ScexDeviceHandler.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mission/devices/ScexDeviceHandler.cpp b/mission/devices/ScexDeviceHandler.cpp index 85fbdc3a..4c84b40d 100644 --- a/mission/devices/ScexDeviceHandler.cpp +++ b/mission/devices/ScexDeviceHandler.cpp @@ -122,9 +122,12 @@ void ScexDeviceHandler::fillCommandAndReplyMap() { insertInCommandAndReplyMap(scex::Cmds::TEMP_CMD, 3); insertInCommandAndReplyMap(scex::Cmds::EXP_STATUS_CMD, 3); - insertInCommandMap(scex::Cmds::ALL_CELLS_CMD); - insertInCommandMap(scex::Cmds::ONE_CELL); - insertInCommandMap(scex::Cmds::FRAM); + insertInCommandAndReplyMap(scex::Cmds::ALL_CELLS_CMD, 0, nullptr, 0, false, false, + DeviceHandlerIF::UNKNOWN_DEVICE_REPLY, &finishCountdown); + insertInCommandAndReplyMap(scex::Cmds::ONE_CELL, 0, nullptr, 0, false, false, + DeviceHandlerIF::UNKNOWN_DEVICE_REPLY, &finishCountdown); + insertInCommandAndReplyMap(scex::Cmds::FRAM, 0, nullptr, 0, false, false, + DeviceHandlerIF::UNKNOWN_DEVICE_REPLY, &finishCountdown); insertInReplyMap(scex::Cmds::ERROR_REPLY, 3); }