Skip to content

Commit f369f83

Browse files
author
doncov.eugene
committed
keyStream usable for bouncing buttons
1 parent 11ecfc5 commit f369f83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/keyStream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ class keyLook:public Stream {
4949
lastkey = -1; //released = it's bounce. reset lastkey
5050
return 0;
5151
}
52+
else if (ch != -1 && millis()-pressMills > BOUNCE_TICK) return 1;
5253
else if (ESCAPE_TIME&&millis()-pressMills>ESCAPE_TIME) return 1;
5354

5455
if (ch==lastkey) return 0;
56+
5557
return 1;
5658
/*int cnt=0;
5759
for(int n=0;n<N;n++) {

0 commit comments

Comments
 (0)