Fixed compiling with BLUETOOTH=Y
TODO: bluetooth messes with the focus as it rebuilds the form all the time.
This commit is contained in:
committed by
Raphael Coeffic
parent
ae94dcd12a
commit
a7305c3a69
@@ -113,16 +113,16 @@ class BluetoothConfigWindow : public FormGroup
|
|||||||
// Pin code (displayed for information only, not editable)
|
// Pin code (displayed for information only, not editable)
|
||||||
if (g_eeGeneral.bluetoothMode == BLUETOOTH_TELEMETRY) {
|
if (g_eeGeneral.bluetoothMode == BLUETOOTH_TELEMETRY) {
|
||||||
line = newLine(&grid);
|
line = newLine(&grid);
|
||||||
label = new StaticText(line, rect_t{}, STR_BLUETOOTH_PIN_CODE, 0,
|
auto label = new StaticText(line, rect_t{}, STR_BLUETOOTH_PIN_CODE, 0,
|
||||||
COLOR_THEME_PRIMARY1);
|
COLOR_THEME_PRIMARY1);
|
||||||
lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN);
|
lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN);
|
||||||
new StaticText(line, rect_t{}, "000000", 0, COLOR_THEME_PRIMARY1);
|
new StaticText(line, rect_t{}, "000000", 0, COLOR_THEME_PRIMARY1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Local MAC
|
// Local MAC
|
||||||
line = newLine(&grid);
|
line = newLine(&grid);
|
||||||
label = new StaticText(line, rect_t{}, STR_BLUETOOTH_LOCAL_ADDR, 0,
|
auto label = new StaticText(line, rect_t{}, STR_BLUETOOTH_LOCAL_ADDR, 0,
|
||||||
COLOR_THEME_PRIMARY1);
|
COLOR_THEME_PRIMARY1);
|
||||||
lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN);
|
lv_obj_set_style_pad_left(label->getLvObj(), lv_dpx(8), LV_PART_MAIN);
|
||||||
new StaticText(
|
new StaticText(
|
||||||
line, rect_t{},
|
line, rect_t{},
|
||||||
|
|||||||
Reference in New Issue
Block a user