mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-18 11:18:03 -04:00
fw: Set LED colors
- Set LED color to white when firmware has initialized - Set LED color to black when changing state to loading - Set LED color to blue when starting testloadapp - Update mgmt app allowed digest since testloadapp changed
This commit is contained in:
parent
edbcdb111f
commit
15a350da1e
3 changed files with 10 additions and 5 deletions
|
@ -252,6 +252,8 @@ static enum state initial_commands(const struct frame_header *hdr,
|
|||
|
||||
ctx->left = *app_size;
|
||||
|
||||
led_set(LED_BLACK);
|
||||
|
||||
state = FW_STATE_LOADING;
|
||||
break;
|
||||
}
|
||||
|
@ -496,8 +498,6 @@ int main(void)
|
|||
uint8_t cmd[CMDSIZE] = {0};
|
||||
enum state state = FW_STATE_INITIAL;
|
||||
|
||||
led_set(LED_BLUE);
|
||||
|
||||
print_hw_version();
|
||||
|
||||
/*@-mustfreeonly@*/
|
||||
|
@ -515,6 +515,8 @@ int main(void)
|
|||
assert(1 == 2);
|
||||
}
|
||||
|
||||
led_set(LED_WHITE);
|
||||
|
||||
#if defined(SIMULATION)
|
||||
run(&ctx);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue