mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
machine/rp2040: correct write block size for flash
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user