Set mode variable as static

Chasing what I believe is a memory allocation issue, related to large
numbers of LEDs (#9)
This commit is contained in:
David Madison 2017-04-19 21:31:39 -04:00
parent 79c514bd59
commit c24abb7393
1 changed files with 2 additions and 1 deletions

View File

@ -87,8 +87,9 @@ void setup(){
} }
void adalight(){ void adalight(){
static uint8_t
mode = MODE_HEADER;
uint8_t uint8_t
mode = MODE_HEADER,
headPos, headPos,
hi, lo, chk; hi, lo, chk;
int16_t int16_t