From aed0a8a26b3ef6b1bfce0b12107d136b34d86a99 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Tue, 6 Oct 2026 09:35:46 +0200 Subject: [PATCH] fix(solo): e-ink landscape build had no DISPLAY_ROTATION build_unflags runs after build_flags, so unflagging the board's -D DISPLAY_ROTATION=1 in [eink_solo] also removed the landscape env's identical flag: the panel came up portrait (GxEPDDisplay's default 0) and UITask::applyRotation's restore was compiled out, so the rotation setting didn't stick. Only the portrait env unflags it now. Co-Authored-By: Claude Opus 5.5 --- solo/wio-tracker-l1-eink/platformio.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/solo/wio-tracker-l1-eink/platformio.ini b/solo/wio-tracker-l1-eink/platformio.ini index 81d958d2..6d79a01e 100644 --- a/solo/wio-tracker-l1-eink/platformio.ini +++ b/solo/wio-tracker-l1-eink/platformio.ini @@ -20,7 +20,7 @@ extends = WioTrackerL1Eink ; The offline queue (messages held for the phone app while it's away) at 128, ; not the board's 256: on the nRF52 the 256 x 177 B left ~5 KB of heap next to ; the on-device UI (which keeps its own history), too little for a sign buffer. -build_unflags = -Ofast -D OFFLINE_QUEUE_SIZE=256 -D DISPLAY_ROTATION=1 +build_unflags = -Ofast -D OFFLINE_QUEUE_SIZE=256 build_flags = ${WioTrackerL1Eink.build_flags} -D OFFLINE_QUEUE_SIZE=128 -D DUAL_SERIAL=1 @@ -35,7 +35,11 @@ build_flags = ${eink_solo.build_flags} -D DISPLAY_ROTATION=1 -D EINK_LARGE_FONT=1 +; The board's own -D DISPLAY_ROTATION=1 is taken out only here: build_unflags +; runs after build_flags, so unflagging it in [eink_solo] also dropped the +; landscape env's identical flag (that build came up portrait). [env:WioTrackerL1Eink_portrait_solo_dual] extends = eink_solo +build_unflags = ${eink_solo.build_unflags} -D DISPLAY_ROTATION=1 build_flags = ${eink_solo.build_flags} -D DISPLAY_ROTATION=0