machine/rp2040: correct write block size for flash

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-05-06 13:21:25 +02:00
committed by Ron Evans
parent 7e8a2e8934
commit d331aca296
+1 -1
View File
@@ -195,7 +195,7 @@ func (f flashBlockDevice) Size() int64 {
return int64(FlashDataEnd() - FlashDataStart())
}
const writeBlockSize = 4
const writeBlockSize = 1 << 8
// WriteBlockSize returns the block size in which data can be written to
// memory. It can be used by a client to optimize writes, non-aligned writes