dashboard: add battery page transition debug prints

This commit is contained in:
2026-06-18 23:07:04 -06:00
parent 45f5272a94
commit 6b38cc9ea0
2 changed files with 10 additions and 1 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.90-repair-battery-page-link";
static const char *DASHBOARD_VERSION = "0.1.91-battery-page-debug";
// Update these if your Cargo ESP AP credentials are different.
//static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -564,6 +564,13 @@ static void dashboard_page_switch_async_cb(void *user_data)
{
DashboardScreen target = (DashboardScreen)(intptr_t)user_data;
dashboard_page_switch_queued = false;
if (target == SCREEN_BATTERY_DETAIL) {
Serial.println("DEBUG PAGE: Switching to Battery Detail");
} else {
Serial.println("DEBUG PAGE: Switching to Overview");
}
show_dashboard_screen(target);
}
@@ -647,6 +654,7 @@ static void update_battery_detail_widgets()
static void create_battery_detail_screen()
{
Serial.println("DEBUG PAGE: Entering Battery Detail constructor");
lv_obj_t *screen = lv_scr_act();
lv_obj_clean(screen);
current_dashboard_screen = SCREEN_BATTERY_DETAIL;
@@ -684,6 +692,7 @@ static void create_battery_detail_screen()
battery_detail_value_label(screen, "Cell Delta", &battery_detail_delta_label, 356, 504);
update_battery_detail_widgets();
Serial.println("DEBUG PAGE: Leaving Battery Detail constructor");
}
static void show_dashboard_screen(DashboardScreen screen)