move i2c scanm after display init
This commit is contained in:
1 parent
a7230af6d7
commit
a4299e2e18
1 file changed
+3
-3
+3
-3
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user