diff options
| author | Damien George | 2019-09-10 22:41:50 +1000 |
|---|---|---|
| committer | Damien George | 2019-09-10 22:41:50 +1000 |
| commit | bd1d27f00f43bb44fca806cd0c53fa7196a1ea04 (patch) | |
| tree | 6f9b4603543342570b00f86773b2bcb198f14606 | |
| parent | 80d37d936c9832dc4b69ad631ad07697e26764d9 (diff) | |
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.
| -rw-r--r-- | ports/esp32/modules/inisetup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/modules/inisetup.py b/ports/esp32/modules/inisetup.py index 00d9a4eab..3196f0c6f 100644 --- a/ports/esp32/modules/inisetup.py +++ b/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: |
