move i2c scanm after display init

This commit is contained in:
Verkehrsrot 2019-10-13 16:59:38 +02:00
parent a7230af6d7
commit a4299e2e18

View File

@ -188,9 +188,6 @@ void setup() {
strcat_P(features, " PMU"); strcat_P(features, " PMU");
#endif #endif
// scan i2c bus for devices
i2c_scan();
#endif // verbose #endif // verbose
// read (and initialize on first run) runtime settings from NVRAM // read (and initialize on first run) runtime settings from NVRAM
@ -203,6 +200,9 @@ void setup() {
init_display(!cfg.runmode); // note: blocking call init_display(!cfg.runmode); // note: blocking call
#endif #endif
// scan i2c bus for devices
i2c_scan();
#ifdef BOARD_HAS_PSRAM #ifdef BOARD_HAS_PSRAM
assert(psramFound()); assert(psramFound());
ESP_LOGI(TAG, "PSRAM found and initialized"); ESP_LOGI(TAG, "PSRAM found and initialized");