mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-10 14:25:33 -05:00
fw: Steady white led while waiting cmd; led off while loading app
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
7eb4d0304b
commit
4afdc1cd1f
7 changed files with 19 additions and 37 deletions
|
|
@ -234,12 +234,8 @@ int main()
|
|||
}
|
||||
|
||||
uint8_t in;
|
||||
if (state == FW_STATE_LOADING) {
|
||||
*led = LED_WHITE;
|
||||
in = readbyte();
|
||||
} else {
|
||||
in = readbyte_ledflash(LED_WHITE, 800000);
|
||||
}
|
||||
*led = (state == FW_STATE_LOADING) ? LED_BLACK : LED_WHITE;
|
||||
in = readbyte();
|
||||
|
||||
if (parseframe(in, &hdr) == -1) {
|
||||
htif_puts("Couldn't parse header\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue