change startup order for init_display
This commit is contained in:
parent
63ff668a96
commit
65045b3cad
14
src/main.cpp
14
src/main.cpp
@ -174,6 +174,13 @@ void setup() {
|
|||||||
// read (and initialize on first run) runtime settings from NVRAM
|
// read (and initialize on first run) runtime settings from NVRAM
|
||||||
loadConfig(); // includes initialize if necessary
|
loadConfig(); // includes initialize if necessary
|
||||||
|
|
||||||
|
// initialize display
|
||||||
|
#ifdef HAS_DISPLAY
|
||||||
|
strcat_P(features, " OLED");
|
||||||
|
DisplayIsOn = cfg.screenon;
|
||||||
|
init_display(PRODUCTNAME, PROGVERSION); // note: blocking call
|
||||||
|
#endif
|
||||||
|
|
||||||
#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");
|
||||||
@ -305,13 +312,6 @@ void setup() {
|
|||||||
strcat_P(features, " FILTER");
|
strcat_P(features, " FILTER");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialize display
|
|
||||||
#ifdef HAS_DISPLAY
|
|
||||||
strcat_P(features, " OLED");
|
|
||||||
DisplayIsOn = cfg.screenon;
|
|
||||||
init_display(PRODUCTNAME, PROGVERSION); // note: blocking call
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// initialize matrix display
|
// initialize matrix display
|
||||||
#ifdef HAS_MATRIX_DISPLAY
|
#ifdef HAS_MATRIX_DISPLAY
|
||||||
strcat_P(features, " LED_MATRIX");
|
strcat_P(features, " LED_MATRIX");
|
||||||
|
Loading…
Reference in New Issue
Block a user