diff --git a/drivers/lora/sx1276.c b/drivers/lora/sx1276.c index 18b98b2f388..6d25e93cebb 100644 --- a/drivers/lora/sx1276.c +++ b/drivers/lora/sx1276.c @@ -231,22 +231,12 @@ void SX1276SetRfTxPower(int8_t power) uint8_t pa_config = 0; uint8_t pa_dac = 0; - ret = sx1276_read(SX1276_REG_PA_CONFIG, &pa_config, 1); - if (ret < 0) { - LOG_ERR("Unable to read PA config"); - return; - } - ret = sx1276_read(SX1276_REG_PA_DAC, &pa_dac, 1); if (ret < 0) { LOG_ERR("Unable to read PA dac"); return; } - pa_config &= RF_PACONFIG_MAX_POWER_MASK; - pa_config &= RF_PACONFIG_OUTPUTPOWER_MASK; - pa_config &= RF_PACONFIG_PASELECT_MASK; - pa_dac &= RF_PADAC_20DBM_MASK; #if defined CONFIG_PA_BOOST_PIN