mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00
scan i2c twice for all devices, not just tbeam
This commit is contained in:
parent
603f60d86a
commit
a7e0127793
@ -281,12 +281,10 @@ void setup()
|
|||||||
power->setup(); // Must be after status handler is installed, so that handler gets notified of the initial configuration
|
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
|
* 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)
|
// Init our SPI controller (must be before screen and lora)
|
||||||
initSPI();
|
initSPI();
|
||||||
|
Loading…
Reference in New Issue
Block a user