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:
Mikael Ågren 2025-04-25 17:14:21 +02:00 committed by Michael Cardell Widerkrantz
parent edbcdb111f
commit 15a350da1e
No known key found for this signature in database
GPG key ID: D3DB3DDF57E704E5
3 changed files with 10 additions and 5 deletions

View file

@ -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