Disable Order Check PL PCDU #825

Merged
muellerr merged 10 commits from disable-order-check-plpcdu into main 2023-11-29 15:13:58 +01:00
Showing only changes of commit bd383cfe04 - Show all commits

View File

@ -622,26 +622,26 @@ ReturnValue_t PayloadPcduHandler::checkModeCommand(Mode_t commandedMode, 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) {
return (submode & plpcdu::DRO_ON) == plpcdu::DRO_ON;
return submode & (1 << plpcdu::DRO_ON);
}
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) {
return (submode & plpcdu::TX_ON) == plpcdu::TX_ON;
return submode & (1 << plpcdu::TX_ON);
}
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) {
return (submode & plpcdu::HPA_ON) == plpcdu::HPA_ON;
return submode & (1 << plpcdu::HPA_ON);
}
ReturnValue_t PayloadPcduHandler::serializeFloat(uint32_t& param, float val) {