From 445eaf8342a111c2236ce0ced26aa0bd653a426e Mon Sep 17 00:00:00 2001 From: agessaman Date: Fri, 28 Aug 2026 15:54:16 -0700 Subject: [PATCH] chore(display): log the persisted display.flip state at boot display.flip lives in /mqtt.json, so it survives a reflash and is invisible while someone is chasing a wrong orientation - a node still carrying flip=1 from testing looks exactly like a firmware that was never fixed. Boot now reports "Display: flip off" or "flip on (rotated 180)". --- examples/simple_repeater/UITask.cpp | 3 +++ examples/simple_room_server/UITask.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/simple_repeater/UITask.cpp b/examples/simple_repeater/UITask.cpp index 61a7fedd..ee66520f 100644 --- a/examples/simple_repeater/UITask.cpp +++ b/examples/simple_repeater/UITask.cpp @@ -39,6 +39,9 @@ void UITask::applyDisplayFlip() { if (_observer_prefs == NULL || _observer_prefs->display_flip == _flip_seen) return; _flip_seen = _observer_prefs->display_flip; _display->setFlipped(_flip_seen != 0); + // Logged unconditionally: this is persisted config, so it survives a reflash + // and is otherwise invisible when someone is chasing a wrong orientation. + Serial.printf("Display: flip %s\n", _flip_seen ? "on (rotated 180)" : "off"); #ifdef DISPLAY_REDRAW_ON_CHANGE _frame_valid = false; #endif diff --git a/examples/simple_room_server/UITask.cpp b/examples/simple_room_server/UITask.cpp index 7b4470d2..8dab1cdc 100644 --- a/examples/simple_room_server/UITask.cpp +++ b/examples/simple_room_server/UITask.cpp @@ -38,6 +38,9 @@ void UITask::applyDisplayFlip() { if (_observer_prefs == NULL || _observer_prefs->display_flip == _flip_seen) return; _flip_seen = _observer_prefs->display_flip; _display->setFlipped(_flip_seen != 0); + // Logged unconditionally: this is persisted config, so it survives a reflash + // and is otherwise invisible when someone is chasing a wrong orientation. + Serial.printf("Display: flip %s\n", _flip_seen ? "on (rotated 180)" : "off"); #ifdef DISPLAY_REDRAW_ON_CHANGE _frame_valid = false; #endif