Browse Source

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.
pull/5094/head
Damien George 5 years ago
parent
commit
bd1d27f00f
  1. 2
      ports/esp32/modules/inisetup.py

2
ports/esp32/modules/inisetup.py

@ -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…
Cancel
Save