This commit is contained in:
2026-02-27 16:39:33 +01:00
parent 09a2d1d82d
commit e848168840
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
VERSION_MAJOR = 0 VERSION_MAJOR = 0
VERSION_MINOR = 1 VERSION_MINOR = 1
PATCHLEVEL = 11 PATCHLEVEL = 12
VERSION_TWEAK = 0 VERSION_TWEAK = 0
EXTRAVERSION = 0 EXTRAVERSION = 0

View File

@@ -16,21 +16,22 @@
#include <usb.h> #include <usb.h>
#include <utils.h> #include <utils.h>
LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
volatile static uint8_t reboot_code = 0; volatile static uint8_t reboot_code = 0;
void init_reboot_status() int init_reboot_status()
{ {
reboot_code = get_reboot_status(); reboot_code = get_reboot_status();
if (reboot_code != 0) if (reboot_code != 0)
{ {
LOG_INF("Device rebooted with status code: 0x%02x", reboot_code); LOG_INF("Device rebooted with status code: 0x%02x", reboot_code);
} }
return 0;
} }
SYS_INIT(init_reboot_status, POST_KERNEL, 0); SYS_INIT(init_reboot_status, POST_KERNEL, 0);
LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
int main(void) int main(void)
{ {
LOG_INF("Starting Edi's Buzzer Application"); LOG_INF("Starting Edi's Buzzer Application");

View File

@@ -273,6 +273,7 @@ int cmd_confirm_firmware() {
return rc; return rc;
} }
LOG_INF("Firmware confirmed successfully"); LOG_INF("Firmware confirmed successfully");
send_ok();
reboot_with_status(REBOOT_STATUS_FIRMWARE_CONFIRMED); reboot_with_status(REBOOT_STATUS_FIRMWARE_CONFIRMED);
return 0; return 0;
} }