summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/flashbdev.py
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/modules/flashbdev.py')
-rw-r--r--esp8266/modules/flashbdev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modules/flashbdev.py b/esp8266/modules/flashbdev.py
index 98b0208fb6..e879895fb0 100644
--- a/esp8266/modules/flashbdev.py
+++ b/esp8266/modules/flashbdev.py
@@ -3,7 +3,7 @@ import esp
class FlashBdev:
SEC_SIZE = 4096
- START_SEC = 0x90000 // SEC_SIZE
+ START_SEC = esp.flash_user_start() // SEC_SIZE
NUM_BLK = 0x6b
def __init__(self, blocks=NUM_BLK):