Skip to content

Commit e6d2b4b

Browse files
authored
assert -> hard_assert to fix unused compile warning (#680)
1 parent 7142787 commit e6d2b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootloaders/uart/uart_boot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void uart_boot() {
6363
uint32_t* buffer = malloc(buf_words * 4);
6464

6565
int ret = rom_get_partition_table_info(buffer, buf_words, PT_INFO_PARTITION_LOCATION_AND_FLAGS | PT_INFO_SINGLE_PARTITION | (0 << 24));
66-
assert(buffer[0] == (PT_INFO_PARTITION_LOCATION_AND_FLAGS | PT_INFO_SINGLE_PARTITION));
67-
assert(ret == 3);
66+
hard_assert(buffer[0] == (PT_INFO_PARTITION_LOCATION_AND_FLAGS | PT_INFO_SINGLE_PARTITION));
67+
hard_assert(ret == 3);
6868

6969
uint32_t location_and_permissions = buffer[1];
7070
uint32_t start_addr = XIP_BASE + ((location_and_permissions & PICOBIN_PARTITION_LOCATION_FIRST_SECTOR_BITS) >> PICOBIN_PARTITION_LOCATION_FIRST_SECTOR_LSB) * FLASH_SECTOR_SIZE;

0 commit comments

Comments
 (0)