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:
parent
85a392e503
commit
e152b3e346
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user