Skip to content

Commit 4dcd87e

Browse files
Fix naming conflict with newer ARM toolchain
1 parent d04fa7c commit 4dcd87e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/loopCounter/loopCounter.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad
1515
Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
1616

1717
unsigned long loopCount = 0;
18-
unsigned long timer_t = 0;
18+
unsigned long timer_ms = 0;
1919

2020
void setup(){
2121
Serial.begin(9600);
@@ -33,12 +33,12 @@ void loop(){
3333
// you a relative idea of just how much the debounceTime has changed the
3434
// speed of your code. If you set a high debounceTime your loopCount will
3535
// look good but your keypresses will start to feel sluggish.
36-
if ((millis() - timer_t) > 1000) {
36+
if ((millis() - timer_ms) > 1000) {
3737
Serial.print("Your loop code ran ");
3838
Serial.print(loopCount);
3939
Serial.println(" times over the last second");
4040
loopCount = 0;
41-
timer_t = millis();
41+
timer_ms = millis();
4242
}
4343
loopCount++;
4444
if(key)

0 commit comments

Comments
 (0)