From 52faa0e2f6e051f779ede57cfec5801c6cc28c40 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sat, 23 May 2026 15:33:03 +0200 Subject: [PATCH] fix(ui): restrict joystick rotation setting to e-ink builds only Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/SettingsScreen.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/companion_radio/ui-new/SettingsScreen.h b/examples/companion_radio/ui-new/SettingsScreen.h index 6e3ae321..4d1e6f02 100644 --- a/examples/companion_radio/ui-new/SettingsScreen.h +++ b/examples/companion_radio/ui-new/SettingsScreen.h @@ -24,7 +24,7 @@ class SettingsScreen : public UIScreen { #if defined(EINK_DISPLAY_MODEL) ROTATION, #endif -#if defined(UI_HAS_JOYSTICK) +#if defined(EINK_DISPLAY_MODEL) JOY_ROTATION, #endif // Sound section @@ -447,7 +447,7 @@ class SettingsScreen : public UIScreen { uint8_t r = p ? (p->display_rotation & 3) : 0; display.print(ROT_LABELS[r]); } #endif -#if defined(UI_HAS_JOYSTICK) +#if defined(EINK_DISPLAY_MODEL) } else if (item == JOY_ROTATION) { display.print("Joystick"); display.setCursor(display.valCol(), y); @@ -678,7 +678,7 @@ public: return true; } #endif -#if defined(UI_HAS_JOYSTICK) +#if defined(EINK_DISPLAY_MODEL) if (_selected == JOY_ROTATION && p && (left || right || enter)) { p->joystick_rotation = (p->joystick_rotation + (left ? 3 : 1)) & 3; _dirty = true;