From 9d8fb650094c1490106f4915313dfabb3a7c3a1c Mon Sep 17 00:00:00 2001 From: ElektroVodka <211697683+Elektr0Vodka@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:08:03 +0100 Subject: [PATCH] fix(xiao_s3_wio): companion Wi-Fi build after the upstream UI move Xiao_S3_WIO_companion_radio_wifi (DISPLAY_CLASS=NullDisplayDriver, companion-orig UI) also fails on upstream/dev ae283810: - target.cpp now creates the display, but target.h did not include NullDisplayDriver.h. - target.h includes SSD1306Display.h for any display; the library finder no longer picks up Adafruit GFX for this env, so name Adafruit SSD1306. - companion-orig/UITask.cpp uses LED_STATE_ON without a default; give it the same default as companion-new/UITask.h. The v1.18.0.1 companion dev release (run 45096564290) left this board out. --- src/helpers/ui/companion-orig/UITask.h | 4 ++++ variants/xiao_s3_wio/platformio.ini | 4 ++++ variants/xiao_s3_wio/target.h | 1 + 3 files changed, 9 insertions(+) diff --git a/src/helpers/ui/companion-orig/UITask.h b/src/helpers/ui/companion-orig/UITask.h index 1dc6ccb72b9..25c8c2b41b6 100644 --- a/src/helpers/ui/companion-orig/UITask.h +++ b/src/helpers/ui/companion-orig/UITask.h @@ -6,6 +6,10 @@ #include #include +#ifndef LED_STATE_ON // same default as companion-new/UITask.h; used by the status LED + #define LED_STATE_ON 1 +#endif + #ifdef PIN_BUZZER #include #endif diff --git a/variants/xiao_s3_wio/platformio.ini b/variants/xiao_s3_wio/platformio.ini index 8c30a714f56..ba9f3f9f90e 100644 --- a/variants/xiao_s3_wio/platformio.ini +++ b/variants/xiao_s3_wio/platformio.ini @@ -227,6 +227,10 @@ lib_deps = ${Xiao_S3_WIO.lib_deps} densaugeo/base64 @ ~1.4.0 0neblock/SNMP_Agent @ 2.1.0 + ; target.h includes SSD1306Display.h for any DISPLAY_CLASS (this env uses + ; NullDisplayDriver). Since the upstream UI move the library finder no longer + ; picks up Adafruit GFX on its own here, so name it (SSD1306 pulls GFX in). + adafruit/Adafruit SSD1306 @ ^2.5.13 [env:Xiao_S3_WIO_sensor] extends = Xiao_S3_WIO diff --git a/variants/xiao_s3_wio/target.h b/variants/xiao_s3_wio/target.h index a5839534e4b..8a1b959aeab 100644 --- a/variants/xiao_s3_wio/target.h +++ b/variants/xiao_s3_wio/target.h @@ -9,6 +9,7 @@ #include #ifdef DISPLAY_CLASS #include + #include // companion_radio_wifi builds use NullDisplayDriver #include #include #endif