From 5e439419a86f7bd6e151ba0c9f41ac7ad46e3933 Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Thu, 15 Aug 2024 09:43:27 -0500 Subject: [PATCH] update --- components/espp | 2 +- main/main.cpp | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/components/espp b/components/espp index 19a92a2..dffe2ca 160000 --- a/components/espp +++ b/components/espp @@ -1 +1 @@ -Subproject commit 19a92a2ba1946f4f9040254974767a844e75b6b6 +Subproject commit dffe2cac2f098c7ba10532510f3f8eb81025dc24 diff --git a/main/main.cpp b/main/main.cpp index 8da24ea..7b87389 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -65,6 +65,15 @@ extern "C" void app_main(void) { logger.error("Could not initialize LCD"); return; } + static constexpr size_t pixel_buffer_size = hw.lcd_width() * 20; + if (!hw.initialize_display(pixel_buffer_size)) { + logger.error("Could not initialize LCD"); + return; + } + if (!hw.initialize_touch()) { + logger.error("Could not initialize touch"); + return; + } std::error_code ec; @@ -172,12 +181,12 @@ extern "C" void app_main(void) { auto display_task = espp::Task::make_unique({ .name = "Display Task", .callback = display_task_fn, - .stack_size_bytes = 10 * 1024, + .stack_size_bytes = 5 * 1024, }); display_task->start(); // make the rtsp client - logger.info("Starting server task"); + logger.info("Starting RTSP client"); std::atomic num_frames_received{0}; espp::RtspClient rtsp_client({ .server_address = mdns_service_address,