summaryrefslogtreecommitdiff
path: root/ports/nrf/supervisor
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-10-20 23:50:12 -0400
committerDan Halbert <halbert@halwitz.org>2019-10-20 23:50:12 -0400
commit7b79ac37399927070e1931022f5759393202ed3d (patch)
tree3ae5f0200b13562c880ea10fe24a2e185d0e4bd2 /ports/nrf/supervisor
parentbe8136dc6d09e2c3af5c20c881662ebf51a778d8 (diff)
Parameterize linker script
Diffstat (limited to 'ports/nrf/supervisor')
-rw-r--r--ports/nrf/supervisor/internal_flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/nrf/supervisor/internal_flash.c b/ports/nrf/supervisor/internal_flash.c
index dcacd4d27..c43454eb3 100644
--- a/ports/nrf/supervisor/internal_flash.c
+++ b/ports/nrf/supervisor/internal_flash.c
@@ -67,7 +67,7 @@ uint32_t supervisor_flash_get_block_size(void) {
}
uint32_t supervisor_flash_get_block_count(void) {
- return ((uint32_t) __fatfs_flash_length - CIRCUITPY_INTERNAL_NVM_SIZE) / FILESYSTEM_BLOCK_SIZE ;
+ return ((uint32_t) __fatfs_flash_length) / FILESYSTEM_BLOCK_SIZE ;
}
void supervisor_flash_flush(void) {
@@ -120,4 +120,3 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t lba, uint32
void supervisor_flash_release_cache(void) {
}
-