From a7dafd2d0945dfd7f80f299f395a37809cd3e574 Mon Sep 17 00:00:00 2001 From: Cliff Date: Mon, 13 Sep 2021 19:38:28 -0700 Subject: [PATCH] Fix bug if switch from other mode back to BT channel count is wrong --- radio/src/gui/colorlcd/model_setup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/gui/colorlcd/model_setup.cpp b/radio/src/gui/colorlcd/model_setup.cpp index ef723093d..64eb1e99b 100644 --- a/radio/src/gui/colorlcd/model_setup.cpp +++ b/radio/src/gui/colorlcd/model_setup.cpp @@ -595,6 +595,7 @@ class TrainerModuleWindow : public FormGroup channelStart->setPrefix(STR_CH); channelStart->setSetValueHandler([=](int32_t newValue) { g_model.trainerData.channelsStart = newValue - 1; + g_model.trainerData.channelsCount = BLUETOOTH_TRAINER_CHANNELS - DEF_TRAINER_CHANNELS; char chend[6]; snprintf(chend, sizeof(chend), "%s%d", STR_CH, g_model.trainerData.channelsStart + BLUETOOTH_TRAINER_CHANNELS);