From 13e635b74eed27adb20cee7f437c64a8addcdc45 Mon Sep 17 00:00:00 2001 From: lewishe Date: Mon, 10 Oct 2022 11:50:18 +0800 Subject: [PATCH] Add judgment on t-beam-s3-core to scanI2Cdevice in main.cpp --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c3f892bce..c9ed47818 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -234,7 +234,11 @@ void setup() #endif // We need to scan here to decide if we have a screen for nodeDB.init() - scanI2Cdevice(); + // In T-Beam-S3-core, the I2C device cannot be scanned before power initialization, otherwise the device will be stuck + if ((HW_VENDOR != HardwareModel_LILYGO_TBEAM_S3_CORE)) { + scanI2Cdevice(); + } + #ifdef RAK4630 // scanEInkDevice(); #endif