bugfix
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-11-21 12:54:36 +01:00
parent 949401e247
commit bd383cfe04

View File

@ -622,26 +622,26 @@ ReturnValue_t PayloadPcduHandler::checkModeCommand(Mode_t commandedMode, Submode
} }
bool PayloadPcduHandler::ssrOnForSubmode(uint8_t submode) { bool PayloadPcduHandler::ssrOnForSubmode(uint8_t submode) {
return (submode & plpcdu::SOLID_STATE_RELAYS_ADC_ON) == plpcdu::SOLID_STATE_RELAYS_ADC_ON; return submode & (1 << plpcdu::SOLID_STATE_RELAYS_ADC_ON);
} }
bool PayloadPcduHandler::droOnForSubmode(uint8_t submode) { bool PayloadPcduHandler::droOnForSubmode(uint8_t submode) {
return (submode & plpcdu::DRO_ON) == plpcdu::DRO_ON; return submode & (1 << plpcdu::DRO_ON);
} }
bool PayloadPcduHandler::x8OnForSubmode(uint8_t submode) { bool PayloadPcduHandler::x8OnForSubmode(uint8_t submode) {
return (submode & plpcdu::X8_ON) == plpcdu::X8_ON; return submode & (1 << plpcdu::X8_ON);
} }
bool PayloadPcduHandler::txOnForSubmode(uint8_t submode) { bool PayloadPcduHandler::txOnForSubmode(uint8_t submode) {
return (submode & plpcdu::TX_ON) == plpcdu::TX_ON; return submode & (1 << plpcdu::TX_ON);
} }
bool PayloadPcduHandler::mpaOnForSubmode(uint8_t submode) { bool PayloadPcduHandler::mpaOnForSubmode(uint8_t submode) {
return (submode & plpcdu::MPA_ON) == plpcdu::MPA_ON; return submode & (1 << plpcdu::MPA_ON);
} }
bool PayloadPcduHandler::hpaOnForSubmode(uint8_t submode) { bool PayloadPcduHandler::hpaOnForSubmode(uint8_t submode) {
return (submode & plpcdu::HPA_ON) == plpcdu::HPA_ON; return submode & (1 << plpcdu::HPA_ON);
} }
ReturnValue_t PayloadPcduHandler::serializeFloat(uint32_t& param, float val) { ReturnValue_t PayloadPcduHandler::serializeFloat(uint32_t& param, float val) {