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