Skip to content

Commit

Permalink
Fix S-COM codes 9 & 10, add code 16.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Sep 22, 2020
1 parent 2799fcd commit a2bcd4c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fw/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ typedef struct {
uint8_t flash; // mask, see leds.h
} SignalCode;

#define NO_CODES 16
#define NO_CODES 17

const SignalCode codes[2][NO_CODES] PROGMEM = {{
{LED_RED, 0},
Expand All @@ -23,13 +23,14 @@ const SignalCode codes[2][NO_CODES] PROGMEM = {{
{LED_YELLOW_TOP | LED_YELLOW_BOTTOM, 0},
{LED_YELLOW_TOP | LED_YELLOW_BOTTOM, LED_YELLOW_TOP},
{LED_RED | LED_WHITE, LED_WHITE}, // PN
{LED_RED | LED_WHITE, 0},
{LED_WHITE, 0},
{LED_RED | LED_WHITE, 0},
{LED_GREEN | LED_WHITE, 0},
{LED_YELLOW_TOP | LED_WHITE, 0},
{0, 0},
{LED_YELLOW_TOP | LED_WHITE, LED_YELLOW_TOP},
{LED_YELLOW_TOP | LED_WHITE | LED_YELLOW_BOTTOM, 0},
{LED_YELLOW_TOP | LED_WHITE | LED_YELLOW_BOTTOM, LED_YELLOW_TOP},
}, {
{LED_WHITE | LED_YELLOW_TOP, 0},
{LED_WHITE | LED_GREEN, 0},
Expand All @@ -45,8 +46,9 @@ const SignalCode codes[2][NO_CODES] PROGMEM = {{
{LED_WHITE | LED_GREEN, 0},
{LED_WHITE | LED_YELLOW_TOP, 0},
{0, 0},
{LED_YELLOW_TOP, LED_YELLOW_TOP},
{LED_YELLOW_TOP, 0},
{LED_WHITE | LED_YELLOW_TOP, LED_YELLOW_TOP},
{LED_WHITE | LED_YELLOW_TOP, 0},
{LED_WHITE | LED_YELLOW_TOP, LED_YELLOW_TOP},
}};

volatile int8_t current_signal_code = -1;
Expand Down

0 comments on commit a2bcd4c

Please sign in to comment.