reverted too much

This commit is contained in:
Thomas Göttgens 2022-11-13 15:28:43 +01:00
parent 6a696af8f6
commit 401b92bdbb
2 changed files with 2 additions and 11 deletions

View File

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

View File

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