machine/rp2040: correct param for number of bytes to be erased by flash
Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
e7363966a5
коммит
7e8a2e8934
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -229,7 +229,7 @@ func (f flashBlockDevice) EraseBlocks(start, length int64) error {
|
||||||
state := interrupt.Disable()
|
state := interrupt.Disable()
|
||||||
defer interrupt.Restore(state)
|
defer interrupt.Restore(state)
|
||||||
|
|
||||||
C.flash_erase_blocks(C.uint32_t(address), C.ulong(length))
|
C.flash_erase_blocks(C.uint32_t(address), C.ulong(length*f.EraseBlockSize()))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче