Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of football_project by
Diff: proto_code.cpp
- Revision:
- 31:a6110950f385
- Parent:
- 30:c60b0d52b067
- Child:
- 32:64e5d7340d82
diff -r c60b0d52b067 -r a6110950f385 proto_code.cpp
--- a/proto_code.cpp Mon Jan 04 16:33:39 2016 +0000
+++ b/proto_code.cpp Tue Jan 05 13:05:48 2016 +0000
@@ -208,6 +208,8 @@
}
last_state = state;
+
+ ta.resetTouchIfStuck();
char message = 'n';
timer = millis() - start;
@@ -1272,7 +1274,8 @@
if(time - last_time > DEBOUNCE_MS)
{
last_time = time;
- buttons = ta.buttons();
+ buttons = ta.buttons() | TA::buttonsRising;
+ TA::buttonsRising = 0;
}
return buttons;
