dashboard: clean leftover voltage label code
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user