FitGroup: Network of Hexiwear Fitness Watches for Group of Friends/Family

Dependencies:   FXOS8700 Hexi_KW40Z Hexi_OLED_SSD1351 MAX30101

Fork of FINAL_FINAL_FINAL by Trevor Hackett

Files at this revision

API Documentation at this revision

Comitter:
angelasnail
Date:
Sun Jun 17 20:54:03 2018 +0000
Parent:
7:e5fcb30509ea
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) {