Skip to content

Commit 9260cf7

Browse files
committed
Fix TBYB flag - it's bool, not uint32_t
1 parent cda08b7 commit 9260cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rp2_common/pico_bootrom/bootrom.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void __attribute__((noreturn)) rom_reset_usb_boot(uint32_t usb_activity_gpio_pin
7575
#define VERSION_DOWNGRADE_ERASE_ADDR *(uint32_t*)0x400e0338
7676
#define TBYB_FLAG_ADDR *(uint32_t*)0x400e0348
7777
#define IMAGE_DEF_VERIFIED(scan_workarea) *(uint32_t*)(0x64 + (uint32_t)scan_workarea)
78-
#define IMAGE_DEF_TBYB_FLAGGED(scan_workarea) *(uint32_t*)(0x4c + (uint32_t)scan_workarea)
78+
#define IMAGE_DEF_TBYB_FLAGGED(scan_workarea) *(bool*)(0x4c + (uint32_t)scan_workarea)
7979
#define IMAGE_DEF_BASE(scan_workarea) *(uint32_t*)(0x54 + (uint32_t)scan_workarea)
8080
#define IMAGE_DEF_REL_BLOCK_OFFSET(scan_workarea) *(uint32_t*)(0x5c + (uint32_t)scan_workarea)
8181

0 commit comments

Comments
 (0)