From e152b3e346244b1a4759c8f78c93b46c4c9da1a1 Mon Sep 17 00:00:00 2001 From: Juergen Fitschen Date: Thu, 31 Oct 2019 12:04:34 +0100 Subject: [PATCH] sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1 --- sys/riotboot/flashwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/riotboot/flashwrite.c b/sys/riotboot/flashwrite.c index b5d2a9b856..289f1d70f1 100644 --- a/sys/riotboot/flashwrite.c +++ b/sys/riotboot/flashwrite.c @@ -38,7 +38,7 @@ size_t riotboot_flashwrite_slotsize(const riotboot_flashwrite_t *state) { switch (state->target_slot) { case 0: return SLOT0_LEN; -#if NUMOF_SLOTS==2 +#if NUM_SLOTS==2 case 1: return SLOT1_LEN; #endif default: return 0;