another small fix
This commit is contained in:
@ -74,6 +74,7 @@ void FreshSupvHandler::performDeviceOperation(uint8_t opCode) {
|
||||
auto cmdIter = activeActionCmds.find(
|
||||
buildActiveCmdKey(Apid::HK, static_cast<uint8_t>(tc::HkId::GET_REPORT)));
|
||||
if (cmdIter == activeActionCmds.end() or not cmdIter->second.isPending) {
|
||||
spParams.buf = commandBuffer.data();
|
||||
sendEmptyCmd(Apid::HK, static_cast<uint8_t>(tc::HkId::GET_REPORT), true);
|
||||
}
|
||||
}
|
||||
@ -192,8 +193,6 @@ ReturnValue_t FreshSupvHandler::initializeLocalDataPool(localpool::DataPool& loc
|
||||
|
||||
ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueId_t commandedBy,
|
||||
const uint8_t* data, size_t size) {
|
||||
// TODO: Handle all commands here. Need to add them to some command map. Send command immediately
|
||||
// then.
|
||||
using namespace supv;
|
||||
ReturnValue_t result;
|
||||
if (uartManager.longerRequestActive()) {
|
||||
@ -478,6 +477,7 @@ void FreshSupvHandler::handleTransitionToOn() {
|
||||
}
|
||||
}
|
||||
if (startupState == StartupState::SET_TIME) {
|
||||
spParams.buf = commandBuffer.data();
|
||||
ReturnValue_t result = prepareSetTimeRefCmd();
|
||||
if (result != returnvalue::OK) {
|
||||
sif::error << "FreshSupvHandler: Setting time command prepration failed" << std::endl;
|
||||
|
Reference in New Issue
Block a user