machine/rp2040: correct write block size for flash
Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
7e8a2e8934
коммит
d331aca296
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -195,7 +195,7 @@ func (f flashBlockDevice) Size() int64 {
|
||||||
return int64(FlashDataEnd() - FlashDataStart())
|
return int64(FlashDataEnd() - FlashDataStart())
|
||||||
}
|
}
|
||||||
|
|
||||||
const writeBlockSize = 4
|
const writeBlockSize = 1 << 8
|
||||||
|
|
||||||
// WriteBlockSize returns the block size in which data can be written to
|
// 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
|
// memory. It can be used by a client to optimize writes, non-aligned writes
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче