dashboard: remove voltage from main battery gauge

This commit is contained in:
2026-06-10 02:10:33 -06:00
parent 96919c949a
commit e603244cb6
2 changed files with 2 additions and 4 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.17-battery-main-simplified";
static const char *DASHBOARD_VERSION = "0.1.18-no-main-voltage";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -16,7 +16,6 @@ static DashboardStatus status_model;
static lv_obj_t *battery_soc_arc = nullptr;
static lv_obj_t *battery_charge_pulse_arc = nullptr;
static lv_obj_t *battery_voltage_label = nullptr;
static lv_obj_t *battery_current_label = nullptr;
static lv_obj_t *battery_estimate_label = nullptr;
static lv_obj_t *battery_soc_label = nullptr;
@@ -56,7 +55,6 @@ static bool pending_relay_state = false;
static int pending_relay_index = -1;
static bool pending_relay_previous_state = false;
static String last_battery_voltage_text;
static String last_battery_current_text;
static String last_battery_estimate_text;
static String last_battery_soc_text;
@@ -782,7 +780,7 @@ static void create_overland_overview_screen()
lv_obj_align(battery_soc_label, LV_ALIGN_TOP_MID, 0, 90);
battery_voltage_label = lv_label_create(battery_card);
lv_label_set_text(battery_voltage_label, "-- V");
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);