Fixed type in SensorSourceChoice

This commit is contained in:
Raphael Coeffic
2021-11-28 12:59:38 +01:00
parent 20a24f265e
commit eabb20a9ad
+1 -1
View File
@@ -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;