Add judgment on t-beam-s3-core to scanI2Cdevice in main.cpp

This commit is contained in:
lewishe 2022-10-10 11:50:18 +08:00
parent 8d0e25fd82
commit 13e635b74e

View File

@ -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