From 7942d0b688075a42e78f87152f952ad4c2976f44 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 13 Apr 2020 23:40:29 +0200 Subject: [PATCH] stm32/storage: Fix start address of second, internal block device. --- ports/stm32/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/storage.c b/ports/stm32/storage.c index 0fa3750951..e24dcdb621 100644 --- a/ports/stm32/storage.c +++ b/ports/stm32/storage.c @@ -42,7 +42,7 @@ #define STORAGE_IDLE_TICK(tick) (((tick) & ~(SYSTICK_DISPATCH_NUM_SLOTS - 1) & STORAGE_SYSTICK_MASK) == 0) #if defined(MICROPY_HW_BDEV2_IOCTL) -#define FLASH_PART2_START_BLOCK (FLASH_PART1_START_BLOCK + MICROPY_HW_BDEV2_IOCTL(BDEV_IOCTL_NUM_BLOCKS, 0)) +#define FLASH_PART2_START_BLOCK (FLASH_PART1_START_BLOCK + MICROPY_HW_BDEV_IOCTL(BDEV_IOCTL_NUM_BLOCKS, 0)) #endif static bool storage_is_initialised = false;