sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1

This commit is contained in:
Juergen Fitschen 2019-10-31 12:04:34 +01:00 committed by Jue
parent 85a392e503
commit e152b3e346

View File

@ -38,7 +38,7 @@ size_t riotboot_flashwrite_slotsize(const riotboot_flashwrite_t *state)
{ {
switch (state->target_slot) { switch (state->target_slot) {
case 0: return SLOT0_LEN; case 0: return SLOT0_LEN;
#if NUMOF_SLOTS==2 #if NUM_SLOTS==2
case 1: return SLOT1_LEN; case 1: return SLOT1_LEN;
#endif #endif
default: return 0; default: return 0;