Added static keywords to Adalight func variables
Should not be strictly necessary, but it was careless to omit them.
This commit is contained in:
parent
c24abb7393
commit
e57c61b1ea
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue