Skip to content

Commit fd2fecc

Browse files
committed
dev-bootloader: Print ble firmware version
1 parent dae43cb commit fd2fecc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bootloader/bootloader.c

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <util.h>
3636

3737
#if defined(BOOTLOADER_DEVDEVICE) || PLATFORM_BITBOX02PLUS == 1
38+
#include <memory/memory_spi.h>
3839
#include <qtouch/qtouch.h>
3940
#endif
4041

@@ -950,6 +951,15 @@ static bool _devdevice_enter(secbool_u32 firmware_verified)
950951
} else {
951952
UG_PutString(0, SCREEN_HEIGHT - 9, " No firmware found", false);
952953
}
954+
#if PLATFORM_BITBOX02PLUS == 1
955+
struct da14531_firmware_version version;
956+
bool res = memory_spi_get_active_ble_firmware_version(&version);
957+
if (res) {
958+
char buf[50];
959+
snprintf(buf, sizeof(buf), "ble fw: %d.%d.%d", version.major, version.minor, version.patch);
960+
UG_PutString(0, SCREEN_HEIGHT - 18, buf, false);
961+
}
962+
#endif
953963
uint16_t ypos = SCREEN_HEIGHT / 2 - 4;
954964
uint16_t xpos = SCREEN_WIDTH - 10;
955965
if (firmware_verified != sectrue_u32) {

0 commit comments

Comments
 (0)