mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-08 14:42:19 -04:00
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:
parent
9608c95931
commit
557031aadc
2 changed files with 10 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue