From e8481688400f6f069584a146fb36782717ffdd0c Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Fri, 27 Feb 2026 16:39:33 +0100 Subject: [PATCH] sync --- firmware/VERSION | 2 +- firmware/src/main.c | 7 ++++--- firmware/src/protocol.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/firmware/VERSION b/firmware/VERSION index 5c7a711..ceff79e 100644 --- a/firmware/VERSION +++ b/firmware/VERSION @@ -1,5 +1,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 1 -PATCHLEVEL = 11 +PATCHLEVEL = 12 VERSION_TWEAK = 0 EXTRAVERSION = 0 \ No newline at end of file diff --git a/firmware/src/main.c b/firmware/src/main.c index 0c16dfc..fbbe2cc 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -16,21 +16,22 @@ #include #include +LOG_MODULE_REGISTER(main, LOG_LEVEL_INF); + volatile static uint8_t reboot_code = 0; -void init_reboot_status() +int init_reboot_status() { reboot_code = get_reboot_status(); if (reboot_code != 0) { LOG_INF("Device rebooted with status code: 0x%02x", reboot_code); } + return 0; } SYS_INIT(init_reboot_status, POST_KERNEL, 0); -LOG_MODULE_REGISTER(main, LOG_LEVEL_INF); - int main(void) { LOG_INF("Starting Edi's Buzzer Application"); diff --git a/firmware/src/protocol.c b/firmware/src/protocol.c index d269ac6..aaec0c0 100644 --- a/firmware/src/protocol.c +++ b/firmware/src/protocol.c @@ -273,6 +273,7 @@ int cmd_confirm_firmware() { return rc; } LOG_INF("Firmware confirmed successfully"); + send_ok(); reboot_with_status(REBOOT_STATUS_FIRMWARE_CONFIRMED); return 0; }