[STM32WL] Fix Module pinter (CI_BUILD_ALL)

This commit is contained in:
jgromes 2024-01-14 16:48:32 +01:00
parent d301aa6a37
commit ea66037c11

View file

@ -45,8 +45,9 @@ int16_t STM32WLx::setOutputPower(int8_t power) {
RADIOLIB_ASSERT(state);
// check the user did not request power output that is not possible
bool hp_supported = this->mod->findRfSwitchMode(MODE_TX_HP);
bool lp_supported = this->mod->findRfSwitchMode(MODE_TX_LP);
Module* mod = this->getMod();
bool hp_supported = mod->findRfSwitchMode(MODE_TX_HP);
bool lp_supported = mod->findRfSwitchMode(MODE_TX_LP);
if((!lp_supported && (power < -9)) || (!hp_supported && (power > 14))) {
// LP not supported but requested power is below HP low bound or
// HP not supported but requested power is above LP high bound