mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
esp32/modules/inisetup.py: Use bdev.ioctl instead of bdev.SEC_SIZE.
Since the bdev is now a Partition it doesn't have SEC_SIZE.
This commit is contained in:
@@ -2,7 +2,7 @@ import uos
|
||||
from flashbdev import bdev
|
||||
|
||||
def check_bootsec():
|
||||
buf = bytearray(bdev.SEC_SIZE)
|
||||
buf = bytearray(bdev.ioctl(5, 0)) # 5 is SEC_SIZE
|
||||
bdev.readblocks(0, buf)
|
||||
empty = True
|
||||
for b in buf:
|
||||
|
||||
Reference in New Issue
Block a user