1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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) {
case 0: return SLOT0_LEN;
#if NUMOF_SLOTS==2
#if NUM_SLOTS==2
case 1: return SLOT1_LEN;
#endif
default: return 0;