Skip to content

Commit

Permalink
initialize wifi before display
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-m committed Feb 16, 2025
1 parent 20633b9 commit 4b11884
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ void app_main(void) {
}
ESP_ERROR_CHECK(ret);

ESP_LOGI(TAG, "Initialize WIFI");
init_wifi();

ESP_LOGI(TAG, "Initialize mDNS");
init_mdns_svr();

ESP_LOGI(TAG, "Initialize LCD");
lcd_t lcd = {0};
init_lcd(&lcd);
Expand All @@ -66,6 +60,13 @@ void app_main(void) {
lv_obj_t *scr = lv_display_get_screen_active(disp);
init_smpte_image(scr);
print_free_heap_stack();
lv_timer_handler();

ESP_LOGI(TAG, "Initialize WIFI");
init_wifi();

ESP_LOGI(TAG, "Initialize mDNS");
init_mdns_svr();

ESP_LOGI(TAG, "Initializing JPEG receive buffer");
QueueHandle_t rtp_out = xQueueCreate(1, CONFIG_RTP_JPEG_MAX_DATA_SIZE_BYTES);
Expand Down

0 comments on commit 4b11884

Please sign in to comment.