diff --git a/firmware/esp32-s3-dashboard/dashboard_config.h b/firmware/esp32-s3-dashboard/dashboard_config.h index 9bd2b49..34f8f24 100644 --- a/firmware/esp32-s3-dashboard/dashboard_config.h +++ b/firmware/esp32-s3-dashboard/dashboard_config.h @@ -1,6 +1,6 @@ #pragma once -static const char *DASHBOARD_VERSION = "0.1.101-battery-detail-cache-reset"; +static const char *DASHBOARD_VERSION = "0.1.102-keep-overview-data-on-return"; // Update these if your Cargo ESP AP credentials are different. //static const char *CARGO_WIFI_SSID = "OverlandController"; diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index 6e477ff..eb078ed 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -686,13 +686,9 @@ static void close_battery_detail_screen() lv_obj_add_flag(battery_detail_page, LV_OBJ_FLAG_HIDDEN); } + // Keep the existing overview widgets exactly as-is. + // The next successful API poll will refresh them naturally. current_dashboard_screen = SCREEN_OVERVIEW; - - reset_overview_widget_cache(); - fast_status_refresh_requested = true; - metadata_refresh_requested = true; -invalidate_overview_widget_cache(); - refresh_dashboard_widgets(); } static void create_battery_detail_screen()