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:
parent
80d37d936c
commit
bd1d27f00f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user