repaire exe handling

This commit is contained in:
2022-11-08 19:53:26 +01:00
parent 54523b25d1
commit 27e46615b6
3 changed files with 51 additions and 35 deletions

View File

@ -12,8 +12,6 @@
#include "mission/devices/devicedefinitions/SpBase.h"
using namespace returnvalue;
namespace supv {
namespace result {
@ -126,13 +124,16 @@ static const DeviceCommandId_t CONTINUE_UPDATE = 60;
static const DeviceCommandId_t MEMORY_CHECK_WITH_FILE = 61;
/** Reply IDs */
static const DeviceCommandId_t ACK_REPORT = 100;
static const DeviceCommandId_t EXE_REPORT = 101;
static const DeviceCommandId_t HK_REPORT = 102;
static const DeviceCommandId_t BOOT_STATUS_REPORT = 103;
static const DeviceCommandId_t LATCHUP_REPORT = 104;
static const DeviceCommandId_t LOGGING_REPORT = 105;
static const DeviceCommandId_t ADC_REPORT = 106;
enum ReplyId : DeviceCommandId_t {
ACK_REPORT = 100,
EXE_REPORT = 101,
HK_REPORT = 102,
BOOT_STATUS_REPORT = 103,
LATCHUP_REPORT = 104,
LOGGING_REPORT = 105,
ADC_REPORT = 106,
UPDATE_STATUS_REPORT = 107,
};
// Size of complete space packet (6 byte header + size of data + 2 byte CRC)
static const uint16_t SIZE_ACK_REPORT = 14;
@ -493,7 +494,7 @@ class NoPayloadPacket : public TcBase {
ReturnValue_t buildPacket() {
ReturnValue_t result = checkSizeAndSerializeHeader();
if (result != OK) {
if (result != returnvalue::OK) {
return result;
}
return calcAndSetCrc();