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.
Dependencies: BLE_API mbed-dev nRF51822
Diff: main.cpp
- Revision:
- 40:364deaa190fe
- Parent:
- 39:b7889285c9ef
- Child:
- 41:2b034f22b98f
--- a/main.cpp Fri Aug 26 15:39:03 2016 +0000
+++ b/main.cpp Fri Aug 26 16:03:18 2016 +0000
@@ -450,7 +450,12 @@
is_pressed(keysCurr, 0, 15) // right top
) {
printf("re-init connection\r\n");
- HIDController::initializeConnection();
+ HIDController::initializeConnection(true);
+ } else {
+ if (HIDController::status() == TIMEOUT) {
+ printf("wakeup\r\n");
+ HIDController::initializeConnection(false);
+ }
}
}