mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 11:55:56 +00:00
reverted too much
This commit is contained in:
parent
6a696af8f6
commit
401b92bdbb
@ -90,14 +90,12 @@ uint8_t oled_probe(byte addr)
|
|||||||
return o_probe;
|
return o_probe;
|
||||||
}
|
}
|
||||||
|
|
||||||
void scanI2Cdevice(bool partial)
|
void scanI2Cdevice()
|
||||||
{
|
{
|
||||||
byte err, addr;
|
byte err, addr;
|
||||||
uint16_t registerValue = 0x00;
|
uint16_t registerValue = 0x00;
|
||||||
int nDevices = 0;
|
int nDevices = 0;
|
||||||
for (addr = 1; addr < 127; addr++) {
|
for (addr = 1; addr < 127; addr++) {
|
||||||
if (partial && addr != SSD1306_ADDRESS && addr != ST7567_ADDRESS && addr != XPOWERS_AXP192_AXP2101_ADDRESS)
|
|
||||||
continue;
|
|
||||||
Wire.beginTransmission(addr);
|
Wire.beginTransmission(addr);
|
||||||
err = Wire.endTransmission();
|
err = Wire.endTransmission();
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
|
@ -304,13 +304,6 @@ void setup()
|
|||||||
|
|
||||||
playStartMelody();
|
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?
|
// fixed screen override?
|
||||||
if (config.display.oled != Config_DisplayConfig_OledType_OLED_AUTO)
|
if (config.display.oled != Config_DisplayConfig_OledType_OLED_AUTO)
|
||||||
screen_model = config.display.oled;
|
screen_model = config.display.oled;
|
||||||
|
Loading…
Reference in New Issue
Block a user