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:
Damien George 2019-09-10 22:41:50 +10:00
parent 80d37d936c
commit bd1d27f00f

View File

@ -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: