summaryrefslogtreecommitdiff
path: root/ports/zephyr/modules/_boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'ports/zephyr/modules/_boot.py')
-rw-r--r--ports/zephyr/modules/_boot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/zephyr/modules/_boot.py b/ports/zephyr/modules/_boot.py
index 5af302fad..d0ba21d3f 100644
--- a/ports/zephyr/modules/_boot.py
+++ b/ports/zephyr/modules/_boot.py
@@ -23,8 +23,7 @@ def create_flash_partition():
Return True if successful, False otherwise.
"""
if _STORAGE_KEY in FlashArea.areas:
- # TODO: get the erase block size from DTS instead of 4K.
- bdev = FlashArea(FlashArea.areas[_STORAGE_KEY], 4096)
+ bdev = FlashArea(*FlashArea.areas[_STORAGE_KEY])
retval = True
try:
vfs.mount(bdev, _FLASH)