From 01d9b7c376a0cab80771883cfe5e18fb88c9bf43 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Fri, 16 Oct 2026 17:54:29 -0700 Subject: [PATCH] Keep legacy UI version regression aligned with refresh initialization --- test/test_legacy_ui_version_bounds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_legacy_ui_version_bounds.py b/test/test_legacy_ui_version_bounds.py index 418dfc23f..2e92cea15 100644 --- a/test/test_legacy_ui_version_bounds.py +++ b/test/test_legacy_ui_version_bounds.py @@ -53,7 +53,7 @@ struct UITask { SensorManager* _sensors = nullptr; CompanionNodePrefs* _node_prefs = nullptr; unsigned clears = 0, resets = 0; - unsigned long ui_started_at = 0; + unsigned long ui_started_at = 0, _next_refresh = 0; explicit UITask(char (&label)[@CAPACITY@]) : _version_info(label) {} void clearMsgPreview() { ++clears; } void resetRadioProfileDisplayPage() { ++resets; } @@ -75,6 +75,7 @@ static void exercise(const std::string& version, const std::string& date, assert(allocations == 0); assert(ui._sensors == &sensors && ui._node_prefs == &prefs); assert(ui.clears == 1 && ui.resets == 1 && ui.ui_started_at == 1234); + assert(ui._next_refresh == ui.ui_started_at); assert(display.power_calls == unsigned(use_display)); if (use_display) assert(display.rotation == 270); }