Archived
1
0

fixes a signed / unsigned int comparison

initializes debounceMillis as an unsigned long (previously a signed long) to prevent the comparison conflict that arises on line 131 with debouncingMicros[i][j] which is an unsigned long
This commit is contained in:
wrongPaul 2018-05-07 12:14:59 -04:00 committed by GitHub
parent c65ece96fb
commit 2b11182da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ char keys[ROWS][COLS] = {
int rowPins[ROWS] = {4, 5, 6, 7};
int colPins[COLS] = {8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 20};
int ledPin = 3;
long debounceMillis = 20;
unsigned long debounceMillis = 20;
// Keyboard state variables
boolean isStrokeInProgress = false;