fix: SPORT power handling UI on supported B&W radios (#3636)

This commit is contained in:
3djc
2023-06-15 10:07:07 +10:00
committed by GitHub
parent 68061346fa
commit 285de8a08e
3 changed files with 22 additions and 17 deletions
+9
View File
@@ -476,6 +476,14 @@ bool isSerialModeAvailable(uint8_t port_nr, int mode)
return true;
}
bool hasSportPower() {
auto mod_desc = modulePortGetModuleDescription(SPORT_MODULE);
if (mod_desc && mod_desc->set_pwr) {
return true;
}
return false;
}
bool isSwitchAvailableInLogicalSwitches(int swtch)
{
return isSwitchAvailable(swtch, LogicalSwitchesContext);
@@ -1123,6 +1131,7 @@ int getFirstAvailable(int min, int max, IsValueAvailable isValueAvailable)
}
return retval;
}
#if defined(MULTIMODULE)
const uint8_t getMaxMultiOptions()