From a7e01277934efa781000c2316d3fb1bd0509be11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 13 Oct 2022 23:46:25 +0200 Subject: [PATCH] scan i2c twice for all devices, not just tbeam --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8779a6ab0..3e233d4ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -281,12 +281,10 @@ void setup() power->setup(); // Must be after status handler is installed, so that handler gets notified of the initial configuration /* - * Repeat the scanning for I2C devices after power initialization. + * Repeat the scanning for I2C devices after power initialization or look for 'latecomers'. * Boards with an PMU need to be powered on to correctly scan to the device address, such as t-beam-s3-core */ - if ((HW_VENDOR == HardwareModel_LILYGO_TBEAM_S3_CORE) || (HW_VENDOR == HardwareModel_TBEAM)) { - scanI2Cdevice(); - } + scanI2Cdevice(); // Init our SPI controller (must be before screen and lora) initSPI();