mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-26 16:27:57 +00:00
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)".
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user