diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index 921de0f..77f1931 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -258,13 +258,6 @@ static void layout_relay_buttons() int total_width = (button_width * visible_count) + (RELAY_BUTTON_GAP * (visible_count - 1)); int start_x = (available_width - total_width) / 2; - lv_obj_t *vehicle_label = lv_label_create(vehicle_card); - lv_label_set_text(vehicle_label, "Vehicle\n\nOffline\n\nFuture:\nCoolant\nTrans Temp\n4WD\nTilt/Roll"); - lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0); - lv_obj_set_width(vehicle_label, 230); - lv_label_set_long_mode(vehicle_label, LV_LABEL_LONG_WRAP); - lv_obj_align(vehicle_label, LV_ALIGN_CENTER, 0, 0); - for (int i = 0; i < 6; i++) { if (relay_buttons[i] == nullptr) { continue; @@ -811,6 +804,13 @@ static void create_overland_overview_screen() lv_obj_set_width(outside_temp_label, 260); lv_obj_align(outside_temp_label, LV_ALIGN_TOP_LEFT, 0, 190); + lv_obj_t *vehicle_label = lv_label_create(vehicle_card); + lv_label_set_text(vehicle_label, "Vehicle\n\nOffline\n\nFuture:\nCoolant\nTrans Temp\n4WD\nTilt/Roll"); + lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0); + lv_obj_set_width(vehicle_label, 230); + lv_label_set_long_mode(vehicle_label, LV_LABEL_LONG_WRAP); + lv_obj_align(vehicle_label, LV_ALIGN_CENTER, 0, 0); + for (int i = 0; i < 6; i++) { relay_buttons[i] = lv_btn_create(relay_card); lv_obj_set_size(relay_buttons[i], 140, 70);