From a7305c3a698889f41dd27e6a6a943c70cc15bee2 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 14 Jun 2022 11:28:45 +0200 Subject: [PATCH] Fixed compiling with BLUETOOTH=Y TODO: bluetooth messes with the focus as it rebuilds the form all the time. --- radio/src/gui/colorlcd/radio_hardware.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/gui/colorlcd/radio_hardware.cpp b/radio/src/gui/colorlcd/radio_hardware.cpp index 536c11f15..fbf1dac9d 100644 --- a/radio/src/gui/colorlcd/radio_hardware.cpp +++ b/radio/src/gui/colorlcd/radio_hardware.cpp @@ -113,16 +113,16 @@ class BluetoothConfigWindow : public FormGroup // Pin code (displayed for information only, not editable) if (g_eeGeneral.bluetoothMode == BLUETOOTH_TELEMETRY) { line = newLine(&grid); - label = new StaticText(line, rect_t{}, STR_BLUETOOTH_PIN_CODE, 0, - COLOR_THEME_PRIMARY1); + auto label = new StaticText(line, rect_t{}, STR_BLUETOOTH_PIN_CODE, 0, + COLOR_THEME_PRIMARY1); lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN); new StaticText(line, rect_t{}, "000000", 0, COLOR_THEME_PRIMARY1); } // Local MAC line = newLine(&grid); - label = new StaticText(line, rect_t{}, STR_BLUETOOTH_LOCAL_ADDR, 0, - COLOR_THEME_PRIMARY1); + auto label = new StaticText(line, rect_t{}, STR_BLUETOOTH_LOCAL_ADDR, 0, + COLOR_THEME_PRIMARY1); lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN); new StaticText( line, rect_t{},