From eabb20a9ade9a2fe1c848a3703fa08ae93e23b59 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 28 Nov 2021 12:59:38 +0100 Subject: [PATCH] Fixed type in SensorSourceChoice --- radio/src/gui/colorlcd/model_telemetry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/model_telemetry.cpp b/radio/src/gui/colorlcd/model_telemetry.cpp index 87bc229fc..c3cd526a9 100644 --- a/radio/src/gui/colorlcd/model_telemetry.cpp +++ b/radio/src/gui/colorlcd/model_telemetry.cpp @@ -38,7 +38,7 @@ class SensorSourceChoice : public SourceChoice SourceChoice(window, rect, MIXSRC_NONE, MIXSRC_LAST_TELEM, GET_DEFAULT(*source ? MIXSRC_FIRST_TELEM + 3 * (*source - 1) : MIXSRC_NONE), - [=](uint8_t newValue) { + [=](uint16_t newValue) { *source = newValue == MIXSRC_NONE ? 0 : (newValue - MIXSRC_FIRST_TELEM) / 3 + 1;