Skip to content

Commit c6e0935

Browse files
committed
ports/espressif/supervisor/internal_flash.c: correct write when there's a non-STORAGE_EXTEND single partition
1 parent fbbfa3a commit c6e0935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/espressif/supervisor/internal_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t lba, uint32
168168
#if CIRCUITPY_STORAGE_EXTEND
169169
multi_partition_rw(_cache, sector_offset, SECTOR_SIZE, OP_WRITE);
170170
#else
171-
single_partition_rw(_partition[0], _cache, sector_offset, SECTOR_SIZE, OP_READ);
171+
single_partition_rw(_partition[0], _cache, sector_offset, SECTOR_SIZE, OP_WRITE);
172172
#endif
173173
}
174174
return 0; // success

0 commit comments

Comments
 (0)