dashboard: add battery page transition debug prints
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#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.
|
// Update these if your Cargo ESP AP credentials are different.
|
||||||
//static const char *CARGO_WIFI_SSID = "OverlandController";
|
//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;
|
DashboardScreen target = (DashboardScreen)(intptr_t)user_data;
|
||||||
dashboard_page_switch_queued = false;
|
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);
|
show_dashboard_screen(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -647,6 +654,7 @@ static void update_battery_detail_widgets()
|
|||||||
|
|
||||||
static void create_battery_detail_screen()
|
static void create_battery_detail_screen()
|
||||||
{
|
{
|
||||||
|
Serial.println("DEBUG PAGE: Entering Battery Detail constructor");
|
||||||
lv_obj_t *screen = lv_scr_act();
|
lv_obj_t *screen = lv_scr_act();
|
||||||
lv_obj_clean(screen);
|
lv_obj_clean(screen);
|
||||||
current_dashboard_screen = SCREEN_BATTERY_DETAIL;
|
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);
|
battery_detail_value_label(screen, "Cell Delta", &battery_detail_delta_label, 356, 504);
|
||||||
|
|
||||||
update_battery_detail_widgets();
|
update_battery_detail_widgets();
|
||||||
|
Serial.println("DEBUG PAGE: Leaving Battery Detail constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void show_dashboard_screen(DashboardScreen screen)
|
static void show_dashboard_screen(DashboardScreen screen)
|
||||||
|
|||||||
Reference in New Issue
Block a user