From 30a317dcb6dd40d2eca64aa09fdbe9031c37996f Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Fri, 19 Jun 2026 19:31:23 -0500 Subject: firmware: build fixes — esp_app_format component + forward-declare s_last_painted_seq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two build breaks discovered when actually compiling the prior commits: - main/CMakeLists.txt missing esp_app_format requirement, so esp_app_desc.h couldn't be resolved when app_main.c included it for the boot-time git-hash log. - s_last_painted_seq is referenced inside state_post_handler (reset to 0 on /state wake) but the static was declared further down the file alongside the other /frame state. C requires declaration before use — forward declare it above state_post_handler and keep a stub comment at the original location. --- main/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/CMakeLists.txt') diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 4cd3b9a..ee679a2 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,7 +1,7 @@ idf_component_register( SRC_DIRS "." INCLUDE_DIRS "." - REQUIRES driver esp_driver_i2c esp_driver_jpeg esp_eth esp_event - esp_http_client esp_http_server esp_hw_support esp_lcd - esp_netif esp_pm esp_timer hal json mdns nvs_flash + REQUIRES driver esp_app_format esp_driver_i2c esp_driver_jpeg esp_eth + esp_event esp_http_client esp_http_server esp_hw_support + esp_lcd esp_netif esp_pm esp_timer hal json mdns nvs_flash ) -- cgit v1.2.3