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:
Daniel Lublin 2023-03-01 11:50:24 +01:00
parent 7eb4d0304b
commit 4afdc1cd1f
No known key found for this signature in database
GPG key ID: 75BD0FEB8D3E7830
7 changed files with 19 additions and 37 deletions

View file

@ -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");