Published for Bernard
Dependencies: DebounceIn USBDevice mbed
Revision 7:0b2dfff14976, committed 2014-09-18
- Comitter:
- figlax
- Date:
- Thu Sep 18 08:48:06 2014 +0000
- Parent:
- 6:1ff2b519fcc4
- Child:
- 8:6f46e3682189
- Commit message:
- Bug fix: reinitialize all counters to zero when enter is pushed.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Sep 18 08:41:17 2014 +0000 +++ b/main.cpp Thu Sep 18 08:48:06 2014 +0000 @@ -142,7 +142,17 @@ } if (n==1) { pc.printf(" "); + n=0; } + button_counter=0; + button2_counter=0; + button3_counter=0; + button4_counter=0; + button5_counter=0; + button6_counter=0; + button7_counter=0; + button8_counter=0; + } enter_old= enter_new;