Skip to content

Commit

Permalink
esp32/modules/inisetup.py: Use bdev.ioctl instead of bdev.SEC_SIZE.
Browse files Browse the repository at this point in the history
Since the bdev is now a Partition it doesn't have SEC_SIZE.
  • Loading branch information
dpgeorge committed Sep 10, 2019
1 parent 80d37d9 commit bd1d27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/modules/inisetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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:
Expand Down

0 comments on commit bd1d27f

Please sign in to comment.