From a4299e2e1827905a57472d1ec9d47645359a9a8a Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 13 Oct 2019 16:59:38 +0200 Subject: [PATCH] move i2c scanm after display init --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");