eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit b58453f9e706dc865af1fa0f16c13d28cb1b2b23
parent 1d97be3967c0c91e44ef2d42fa0b0ac4f95f62e3
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 19 Jan 2026 21:06:27 +0000

add BUILD_ID env var so we can see if OTA worked

Diffstat:
Mecu-esp32/src/main.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ecu-esp32/src/main.rs b/ecu-esp32/src/main.rs @@ -36,6 +36,8 @@ extern crate alloc; // For more information see: <https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/app_image_format.html#application-description> esp_bootloader_esp_idf::esp_app_desc!(); +const BUILD_ID: &str = env!("BUILD_ID"); + // #[main] #[esp_rtos::main] async fn main(s : Spawner) { @@ -55,7 +57,7 @@ async fn main(s : Spawner) { esp_rtos::start(timg0.timer0, sw_interrupt.software_interrupt0); - info!("let's go!"); + info!("let's go! {}", BUILD_ID); let mut ecu = Ecu::new( peripherals.GPIO21,