We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b9e7e2 commit ca59f5fCopy full SHA for ca59f5f
esp8266/modules/flashbdev.py
@@ -4,7 +4,7 @@ class FlashBdev:
4
5
SEC_SIZE = 4096
6
START_SEC = 0x89000 // SEC_SIZE
7
- NUM_BLK = 0x73
+ NUM_BLK = 0x72
8
9
def __init__(self, blocks=NUM_BLK):
10
self.blocks = blocks
@@ -64,5 +64,5 @@ def set_bl_flash_size(real_size):
64
if size < 1024*1024:
65
bdev = None
66
else:
67
- # 16K at the flash end is reserved for SDK params storage
68
- bdev = FlashBdev((size - 16384) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)
+ # 20K at the flash end is reserved for SDK params storage
+ bdev = FlashBdev((size - 20480) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)
0 commit comments