Code to be run for the project Group Fitness
Dependencies: FXOS8700 Hexi_KW40Z Hexi_OLED_SSD1351 MAX30101
Fork of final_project_ee119 by
Revision 8:f5a21cfd3833, committed 2018-06-17
- Comitter:
- angelasnail
- Date:
- Sun Jun 17 20:54:03 2018 +0000
- Parent:
- 7:e5fcb30509ea
- Child:
- 9:c3f399b835ce
- Commit message:
- EE119_finalproject
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jun 15 05:59:16 2018 +0000
+++ b/main.cpp Sun Jun 17 20:54:03 2018 +0000
@@ -187,6 +187,7 @@
// Key modification: use the alert functionality enabled by the host-ble interface
// to define our own command.
void AlertReceived(uint8_t *data, uint8_t length) {
+ processedReceivedData = false;
StartHaptic();
data[19] = 0;
@@ -259,16 +260,19 @@
void ButtonUp(void) {
StartHaptic();
flag = 1;
+// processedReceivedData = false;
}
void ButtonDown(void) {
StartHaptic();
flag = 2;
+// processedReceivedData = false;
}
void ButtonRight(void) {
StartHaptic();
flag = 3;
+// processedReceivedData = false;
}
void ButtonLeft(void) {
