dashboard: clean leftover voltage label code

This commit is contained in:
2026-06-10 02:11:48 -06:00
parent e603244cb6
commit e0ab50c345
2 changed files with 1 additions and 8 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.18-no-main-voltage";
static const char *DASHBOARD_VERSION = "0.1.19-voltage-cleanup";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -465,7 +465,6 @@ static void update_system_status_label()
}
static void update_overview_widgets()
{
String current_text = "";
@@ -779,13 +778,7 @@ static void create_overland_overview_screen()
lv_obj_set_style_text_align(battery_soc_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(battery_soc_label, LV_ALIGN_TOP_MID, 0, 90);
battery_voltage_label = lv_label_create(battery_card);
lv_obj_set_style_text_color(battery_voltage_label, lv_color_hex(0xB8C0C8), 0);
lv_obj_set_style_text_font(battery_voltage_label, &lv_font_montserrat_36, 0);
lv_obj_set_width(battery_voltage_label, 280);
lv_obj_set_style_text_align(battery_voltage_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(battery_voltage_label, LV_ALIGN_TOP_MID, 0, 138);
battery_current_label = lv_label_create(battery_card);
lv_label_set_text(battery_current_label, "");