Fix bug if switch from other mode back to BT channel count is wrong
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user