fix(afhds3): modify RF power related issues (#6831)

This commit is contained in:
sneone
2025-12-05 11:46:13 +10:00
committed by GitHub
parent 86b51fdd23
commit cf5ab821ee
5 changed files with 59 additions and 8 deletions
@@ -93,10 +93,14 @@ AFHDS3Settings::AFHDS3Settings(Window* parent, const FlexGridLayout& g,
#if defined(RADIO_PL18U) || defined(PCBPA01)
hasPowerOption = true;
maxPower = AFHDS3_POWER_500;
#if defined(PCBPA01)
md->afhds3.rfPower = afhds3::get_current_rfpower_level(moduleIdx);
#endif
#endif
} else if (moduleIdx == EXTERNAL_MODULE) {
hasPowerOption = true;
maxPower = AFHDS3_FRM303_POWER_MAX;
md->afhds3.rfPower = afhds3::get_current_rfpower_level(moduleIdx);
}
if (hasPowerOption) {