UDK + Shield

Dependencies:   DOGS102 ISL29011 MMA845x MPL3115A2 NCP5623B libmDot_1012-hotifx mbed-rtos mbed-src Senet_Packet X_NUCLEO_IKS01A1

Fork of MTDOT-EVBDemo_Senet by Dave Kjendal

Files at this revision

API Documentation at this revision

Comitter:
Shaun Nelson
Date:
Wed Aug 24 22:44:50 2016 -0400
Parent:
19:62f4a6bae943
Child:
23:dd1685057812
Commit message:
Clear reflected_value on position change to stay in fast transmit mode if position changes back to last reflected

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 24 22:04:46 2016 -0400
+++ b/main.cpp	Wed Aug 24 22:44:50 2016 -0400
@@ -463,6 +463,9 @@
         evbBackLight->setLEDCurrent(0);
         // Turn LED off to indicate server not in agreement 
         SYNC_LED=SYNC_LED_OOS;
+        // Set reflected_value to an out of range value to stay
+        // in fast transmit mode until server responds
+        reflected_value = 0;
     }
 
     /*
@@ -786,6 +789,10 @@
        {
            position_value = next_value;
            position_changed = true;
+           
+           // Set reflected_value to an out of range value to stay
+           // in fast transmit mode until server responds
+           reflected_value = 0;
 
             // Turn LED off to indicate server is not in agreement 
             SYNC_LED=SYNC_LED_OOS;