change sign for number edit

This commit is contained in:
eshifri
2021-06-18 14:00:14 -07:00
parent 952bc12b04
commit 84e0d6e5a6
+5
View File
@@ -90,6 +90,11 @@ class ValueWidget: public Widget
drawTimer(dc, xValue, yValue, abs(timerState.val), attrValue | FONT(XL) | CUSTOM_COLOR);
}
if (field == MIXSRC_TX_TIME) {
drawTimer(dc, xValue, yValue, getValue(MIXSRC_TX_TIME),
attrValue | FONT(XL) | CUSTOM_COLOR);
}
if (field >= MIXSRC_FIRST_TELEM) {
TelemetryItem & telemetryItem = telemetryItems[(field - MIXSRC_FIRST_TELEM) / 3]; // TODO macro to convert a source to a telemetry index
if (!telemetryItem.isAvailable() || telemetryItem.isOld()) {