Show RSSI if RF Freq Fine tuning supported (PR #379)
* Show RSSI if RF Freq Fine tuning supported * Increase buffer slightly, add whitespace * Use same buffer size and naming for consistency * Use shorter code that doesn't require buffer variable (Thanks to @eshifri for the hint about DynamicNumber)
This commit is contained in:
@@ -697,6 +697,13 @@ class ModuleWindow : public FormGroup {
|
||||
}
|
||||
else {
|
||||
new NumberEdit(this, grid.getFieldSlot(2,0), -128, 127, GET_SET_DEFAULT(g_model.moduleData[moduleIdx].multi.optionValue));
|
||||
|
||||
//Show RSSI next to RF Freq Fine Tune
|
||||
if (getMultiOptionTitle(moduleIdx) == STR_MULTI_RFTUNE)
|
||||
{
|
||||
new DynamicNumber<int>(this, grid.getFieldSlot(2, 1), [] {
|
||||
return (int)TELEMETRY_RSSI();}, 0, "RSSI: ", " db");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user