We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1504d90 commit de14b5bCopy full SHA for de14b5b
1 file changed
supervisor/shared/flash.c
@@ -88,7 +88,7 @@ static void build_partition(uint8_t *buf, int boot, int type, uint32_t start_blo
88
89
mp_uint_t flash_read_blocks(uint8_t *dest, uint32_t block_num, uint32_t num_blocks) {
90
if (block_num == 0) {
91
- if (block_num > 1) {
+ if (num_blocks > 1) {
92
return 1; // error
93
}
94
// fake the MBR so we can decide on our own partition table
0 commit comments