From 401b92bdbb6f8f503f11ec81d4a676fc36fa8a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 13 Nov 2022 15:28:43 +0100 Subject: [PATCH] reverted too much --- src/detect/i2cScan.h | 4 +--- src/main.cpp | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/detect/i2cScan.h b/src/detect/i2cScan.h index 0b8f59c14..8ea1d7df3 100644 --- a/src/detect/i2cScan.h +++ b/src/detect/i2cScan.h @@ -90,14 +90,12 @@ uint8_t oled_probe(byte addr) return o_probe; } -void scanI2Cdevice(bool partial) +void scanI2Cdevice() { byte err, addr; uint16_t registerValue = 0x00; int nDevices = 0; for (addr = 1; addr < 127; addr++) { - if (partial && addr != SSD1306_ADDRESS && addr != ST7567_ADDRESS && addr != XPOWERS_AXP192_AXP2101_ADDRESS) - continue; Wire.beginTransmission(addr); err = Wire.endTransmission(); if (err == 0) { diff --git a/src/main.cpp b/src/main.cpp index 2bf2a0de1..f83909869 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -303,14 +303,7 @@ void setup() nodeDB.init(); playStartMelody(); - - - /* - * 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 - */ - // scanI2Cdevice(); - + // fixed screen override? if (config.display.oled != Config_DisplayConfig_OledType_OLED_AUTO) screen_model = config.display.oled;