minor udpates for PLOC SUPV code
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
@ -730,17 +730,13 @@ class FactoryReset : public TcBase {
|
||||
: TcBase(params, Apid::DATA_LOGGER,
|
||||
static_cast<uint8_t>(tc::DataLoggerServiceId::FACTORY_RESET), 0) {}
|
||||
|
||||
ReturnValue_t buildPacket(std::optional<uint8_t> op) {
|
||||
if (op) {
|
||||
setLenFromPayloadLen(1);
|
||||
}
|
||||
ReturnValue_t buildPacket(uint8_t op) {
|
||||
setLenFromPayloadLen(1);
|
||||
auto res = checkSizeAndSerializeHeader();
|
||||
if (res != returnvalue::OK) {
|
||||
return res;
|
||||
}
|
||||
if (op) {
|
||||
payloadStart[0] = op.value();
|
||||
}
|
||||
payloadStart[0] = op;
|
||||
return calcAndSetCrc();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user