dashboard: add battery page transition debug prints
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user