1
0
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:
Koen Zandberg 2021-02-12 16:49:20 +01:00
parent 44dc4dcbac
commit 0d8070fc42
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -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");