Added static keywords to Adalight func variables

Should not be strictly necessary, but it was careless to omit them.
This commit is contained in:
David Madison 2017-04-23 04:32:03 -04:00
parent c24abb7393
commit e57c61b1ea
1 changed files with 6 additions and 5 deletions

View File

@ -89,19 +89,20 @@ void setup(){
void adalight(){ void adalight(){
static uint8_t static uint8_t
mode = MODE_HEADER; mode = MODE_HEADER;
uint8_t static uint8_t
headPos, headPos,
hi, lo, chk; hi, lo, chk;
int16_t int16_t
c; c;
uint16_t static uint16_t
outPos; outPos;
uint32_t static uint32_t
bytesRemaining; bytesRemaining;
unsigned long unsigned long
lastByteTime,
lastAckTime,
t; t;
static unsigned long
lastByteTime,
lastAckTime;
Serial.print("Ada\n"); // Send ACK string to host Serial.print("Ada\n"); // Send ACK string to host