mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-11 17:49:42 -04:00
PoC: testapp: Call reset syscall
This commit is contained in:
parent
e4df068bb4
commit
a68b646edf
@ -266,9 +266,12 @@ int main(void)
|
||||
}
|
||||
puts("\r\n");
|
||||
|
||||
puts("Now echoing what you type...\r\n");
|
||||
puts("Now echoing what you type...Type + to reset device\r\n");
|
||||
for (;;) {
|
||||
in = readbyte(&mode, &mode_bytes_left);
|
||||
if (in == '+') {
|
||||
syscall(TK1_SYSCALL_RESET, 0);
|
||||
}
|
||||
|
||||
writebyte(MODE_CDC);
|
||||
writebyte(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user