mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-26 00:28:15 -04:00
testloadapp: Delete any existing preloaded app before installing
This commit is contained in:
parent
2caaf2a453
commit
5cba9b3f7e
@ -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…
x
Reference in New Issue
Block a user