sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1
This commit is contained in:
parent
85a392e503
commit
e152b3e346
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user