From a4c37c399e7ba37d7eeae4783e5f6dd8a3988eff Mon Sep 17 00:00:00 2001 From: Empire Date: Wed, 5 Mar 2025 21:23:02 +0100 Subject: [PATCH] improve ota and version logging --- rust/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/src/main.rs b/rust/src/main.rs index 3f3b1ad..4bb183f 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -1081,15 +1081,15 @@ fn get_version() -> VersionInfo { let running_partition = unsafe { esp_ota_get_running_partition() }; let address = unsafe { (*running_partition).address }; - let partition = if address > 20000 { - "ota_1" + let partition = if address > 100000 { + "ota_1 @ " } else { - "ota_0" + "ota_0 @ " }; return VersionInfo { git_hash: (branch + "@" + hash), build_time: env!("VERGEN_BUILD_TIMESTAMP").to_owned(), - partition: partition.to_owned() + partition: partition.to_owned() + &address.to_string() }; }