From e6af94d13b9cac617ca7976027726f84b2c69c30 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 24 Oct 2016 01:03:17 +0300 Subject: esp8266/modesp: Add flash_user_start() function. As we're looking towards adding OTA support, calculation of a FlashROM area which can be used for filesystem (etc.) may become complex, so introduce C function for that. So far it just hardcodes current value, 0x90000. In the future the function may be extended (and renamed) to return the size of area too. --- esp8266/modules/flashbdev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266/modules/flashbdev.py') diff --git a/esp8266/modules/flashbdev.py b/esp8266/modules/flashbdev.py index 98b0208fb..e879895fb 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): -- cgit v1.2.3