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:
Peter Feerick
2021-07-05 09:03:00 +10:00
committed by GitHub
parent 4667b29698
commit 797c3f175a
+7
View File
@@ -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");
}
}
}