xfdump: fix another off-by-one static size check
This commit is contained in:
parent
378f239ff0
commit
c2e64c8c6e
|
|
@ -63,7 +63,7 @@ static void xfdump_dump_core(dump_header_t& hdr, uint32_t addr, uint8_t* buf, ui
|
||||||
xfdump_erase();
|
xfdump_erase();
|
||||||
|
|
||||||
// write header
|
// write header
|
||||||
static_assert(sizeof(hdr) < 256, "header is larger than a single page write");
|
static_assert(sizeof(hdr) <= 256, "header is larger than a single page write");
|
||||||
xflash_enable_wr();
|
xflash_enable_wr();
|
||||||
xflash_page_program(DUMP_OFFSET, (uint8_t*)&hdr, sizeof(hdr));
|
xflash_page_program(DUMP_OFFSET, (uint8_t*)&hdr, sizeof(hdr));
|
||||||
xflash_wait_busy();
|
xflash_wait_busy();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue