fw: Re-arrange check for free app slot

- Check explicitly for free app slot. Remove function call.
- Add checks for slot number overflow to preload_store().
This commit is contained in:
Michael Cardell Widerkrantz 2025-04-07 15:23:19 +02:00 committed by Mikael Ågren
parent 9608c95931
commit 557031aadc
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
2 changed files with 10 additions and 18 deletions

View file

@ -9,8 +9,6 @@
#include <stddef.h>
#include <stdint.h>
bool preload_check_valid_app(struct partition_table *part_table,
uint8_t slot);
int preload_load(struct partition_table *part_table, uint8_t from_slot);
int preload_store(struct partition_table *part_table, uint32_t offset,
uint8_t *data, size_t size, uint8_t to_slot);