Skip to content

Commit d0271ed

Browse files
mattia-moffadanielinux
authored andcommitted
Output firmware version as ASCII
1 parent a916a73 commit d0271ed

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

test-app/app_nrf54l.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ static void led_toggle(void)
5050
void main(void)
5151
{
5252
uint32_t version = wolfBoot_current_firmware_version();
53-
uint8_t version_bytes[sizeof(version)];
54-
memcpy(version_bytes, &version, sizeof(version));
5553

5654
hal_init();
5755

@@ -60,10 +58,7 @@ void main(void)
6058
GPIO_OUTCLR(TEST_LED_PORT) = (1U << TEST_LED_PIN);
6159

6260
uart_init();
63-
uart_write("*", 1);
64-
for (int i = (int)(sizeof(version_bytes) - 1); i >= 0; i--) {
65-
uart_write((const char*)&version_bytes[i], 1);
66-
}
61+
wolfBoot_printf("Booted firmware version: %d\r\n", version);
6762

6863
for (;;) {
6964
led_toggle();

0 commit comments

Comments
 (0)