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(){
static uint8_t
mode = MODE_HEADER;
uint8_t
static uint8_t
headPos,
hi, lo, chk;
int16_t
c;
uint16_t
static uint16_t
outPos;
uint32_t
static uint32_t
bytesRemaining;
unsigned long
lastByteTime,
lastAckTime,
t;
static unsigned long
lastByteTime,
lastAckTime;
Serial.print("Ada\n"); // Send ACK string to host