mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
The joystick rotation setting never survived a reboot: loadPrefsInt cleared it on every load. The post-read override guarded on FEAT_JOYSTICK_ROTATION_SETTING (and JOYSTICK_ROTATION), but DataStore.cpp included neither Features.h nor the macro's header, so both were undefined — `#if !FEAT_JOYSTICK_ROTATION_SETTING` was always true and the stored value was forced back to 0 every time. Include Features.h so the flag resolves per build, and only force the default when the setting isn't user-editable (OLED). On e-ink the stored value is now kept; stale values migrated from another build are still corrected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>