fw: Hide *led in led.c

This commit is contained in:
Michael Cardell Widerkrantz 2023-03-16 14:25:17 +01:00
parent 8665031bb4
commit 9488f0633d
No known key found for this signature in database
GPG key ID: D3DB3DDF57E704E5
3 changed files with 9 additions and 4 deletions

View file

@ -26,7 +26,7 @@ int readcommand(struct frame_header *hdr, uint8_t *cmd, int state)
{
uint8_t in = 0;
*led = (state == FW_STATE_LOADING) ? LED_BLACK : LED_WHITE;
set_led((state == FW_STATE_LOADING) ? LED_BLACK : LED_WHITE);
in = readbyte();
if (parseframe(in, hdr) == -1) {