From a741c11c3250c5ca739ad870fdb5774e2f23ecfc Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Thu, 13 Apr 2023 21:30:35 +1000 Subject: [PATCH] chore(afhds3): UI cosmetics Missed a spot ;) --- radio/src/gui/colorlcd/afhds3_options.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/radio/src/gui/colorlcd/afhds3_options.cpp b/radio/src/gui/colorlcd/afhds3_options.cpp index 1e3de6109..9598a310b 100644 --- a/radio/src/gui/colorlcd/afhds3_options.cpp +++ b/radio/src/gui/colorlcd/afhds3_options.cpp @@ -169,14 +169,15 @@ AFHDS3_Options::AFHDS3_Options(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP) auto vCfg = &cfg->v0; auto line = form->newLine(&grid); - std::string temp_str ="PWM"; + std::string temp_str = "PWM"; temp_str += TR_POWERMETER_FREQ; new StaticText(line, rect_t{}, temp_str); - new PWMfrequencyChoice(line, moduleIdx ); - temp_str ="PWM"; - temp_str +=STR_SYNC; + new PWMfrequencyChoice(line, moduleIdx); line = form->newLine(&grid); - + + temp_str = "PWM"; + temp_str += " "; + temp_str += STR_SYNC; new StaticText(line, rect_t{}, temp_str); new CheckBox(line, rect_t{}, GET_SET_DEFAULT(vCfg->PWMFrequency.Synchronized)); line = form->newLine(&grid); @@ -190,10 +191,8 @@ AFHDS3_Options::AFHDS3_Options(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP) line = form->newLine(&grid); new StaticText(line, rect_t{}, STR_SERIAL_BUS); - new Choice(line, rect_t{}, _bus_types, - 0, 2, + new Choice(line, rect_t{}, _bus_types, 0, 2, GET_SET_DEFAULT(cfg->BusType.ExternalBusType)); - } else { auto vCfg = &cfg->v1; for (uint8_t i = 0; i < channel_num[vCfg->PhyMode]; i++) {