From a6f2a3050e61b5b2d70ce9c97664b2a121dcec3a Mon Sep 17 00:00:00 2001 From: Cyclic3 Date: Sat, 14 Nov 2026 12:01:14 +0000 Subject: [PATCH 1/2] Fix USB serial issue on Xiao ESP32-S3 Wio (#1416) (#3726) * Initial attempt at fixing serial issue on Xiao ESP32-S3 Wio (#1416) * restrict Xiao ESP32-S3 WIO fix to just that board --- variants/xiao_s3_wio/XiaoS3WIOBoard.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/variants/xiao_s3_wio/XiaoS3WIOBoard.h b/variants/xiao_s3_wio/XiaoS3WIOBoard.h index 7ae06a35..4a635334 100644 --- a/variants/xiao_s3_wio/XiaoS3WIOBoard.h +++ b/variants/xiao_s3_wio/XiaoS3WIOBoard.h @@ -7,6 +7,13 @@ class XiaoS3WIOBoard : public ESP32Board { public: XiaoS3WIOBoard() { } + void begin() { + while (!Serial.availableForWrite()) + delay(10); + + ESP32Board::begin(); + } + const char* getManufacturerName() const override { return "Xiao S3 WIO"; } From 166863f69038521341524206037fec3210efd42c Mon Sep 17 00:00:00 2001 From: Marcel Verdult <37555613+marcelverdult@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:13:08 +0100 Subject: [PATCH 2/2] rak: keep WB_IO2 driven HIGH after a failed RAK12500 probe (#3834) The I2C probe left WB_IO2 as an input when no RAK12500 answered. WB_IO2 switches the 3V3_S slot rail, which also powers a serial GPS. On base boards that pull this line low, the serial GPS lost power right after detection and never got a fix (#3830). Before 81afafcb the pin stayed HIGH, so keep it driven HIGH again. WB_IO4 and WB_IO5 still go back to inputs. --- src/helpers/sensors/RakI2cGpsDriver.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/helpers/sensors/RakI2cGpsDriver.h b/src/helpers/sensors/RakI2cGpsDriver.h index ac76e069..74327c6a 100644 --- a/src/helpers/sensors/RakI2cGpsDriver.h +++ b/src/helpers/sensors/RakI2cGpsDriver.h @@ -41,7 +41,15 @@ class RakI2cGpsDriver : public GpsDriver { } #ifndef RAK_3401 - pinMode(powerPin, INPUT); + if (powerPin == WB_IO2) { + // WB_IO2 switches the 3V3_S slot rail, which also powers a serial GPS and the other + // slot modules. Left as an input, the rail follows whatever the base board pulls it + // to: some keep it on, others switch it off, and the serial GPS loses power (#3830). + // Keep it driven HIGH, as before the probe; a GPS power pin re-claims it later. + digitalWrite(powerPin, HIGH); + } else { + pinMode(powerPin, INPUT); + } #endif return false; }