Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
31:658b90e226b9
Parent:
24:1a16e7eabb0c
Child:
32:7bdaac2c4cbf
--- a/Communication/Xbee.cpp	Mon Apr 06 18:32:34 2015 +0000
+++ b/Communication/Xbee.cpp	Mon Apr 06 18:45:06 2015 +0000
@@ -87,9 +87,9 @@
     data[6] = mvf.accelData.z & 0x00FF;
 
     //Pas tres elegant, j'ai pas encore eu mon 2e cafe..
-    mvf.flexSensor.index = 1 ? data[7] = 0x04 : data[7] = 0;
-    mvf.flexSensor.majeur = 1 ? data[7] += 0x02 : data[7] += 0;
-    mvf.flexSensor.annulaire = 1 ? data[7] += 0x01 : data[7] += 0;
+    mvf.flexSensor.index == 1 ? data[7] = 0x04 : data[7] = 0;
+    mvf.flexSensor.majeur == 1 ? data[7] += 0x02 : data[7] += 0;
+    mvf.flexSensor.annulaire == 1 ? data[7] += 0x01 : data[7] += 0;
 
     EnvoyerDonnees(data, 8);
 }