mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-29 09:48:34 -04:00
testloadapp: Delete any existing preloaded app before installing
This commit is contained in:
parent
ff472b0c1f
commit
d9a9e22074
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ int install_app(uint8_t secret_key[64])
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (syscall(TK1_SYSCALL_PRELOAD_DELETE, 0, 0, 0) < 0) {
|
||||
puts(IO_CDC, "couldn't delete preloaded app\r\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int err = syscall(TK1_SYSCALL_PRELOAD_STORE, 0, (uint32_t)blink,
|
||||
sizeof(blink));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue