mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
suit: Guard flashwrite interaction in suit_transport_coap
This commit is contained in:
parent
44dc4dcbac
commit
0d8070fc42
@ -367,6 +367,7 @@ static void _suit_handle_url(const char *url)
|
||||
}
|
||||
|
||||
#endif
|
||||
#ifdef MODULE_SUIT_STORAGE_FLASHWRITE
|
||||
if (res == 0) {
|
||||
const riotboot_hdr_t *hdr = riotboot_slot_get_hdr(
|
||||
riotboot_slot_other());
|
||||
@ -381,6 +382,7 @@ static void _suit_handle_url(const char *url)
|
||||
LOG_INFO("suit_coap: update failed, hdr invalid\n ");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
LOG_INFO("suit_coap: error getting manifest\n");
|
||||
|
Loading…
Reference in New Issue
Block a user