forward

Dependencies:   VNH5019

Fork of AigamozuControlPackets by aigamozu

Revision:
30:abc6740124d4
Parent:
26:195c054a0148
diff -r 195c054a0148 -r abc6740124d4 AigamozuControlPackets.cpp
--- a/AigamozuControlPackets.cpp	Fri May 15 09:23:45 2015 +0000
+++ b/AigamozuControlPackets.cpp	Sat May 16 17:25:26 2015 +0000
@@ -94,15 +94,10 @@
 
 void AigamozuControlPackets::set_base_status(int i, uint8_t *status){
     
-    UNION_int_char sta;
-    
-    for(int j = 0;j < 8;j++){
-        sta.char_value[j]= status[j];
-    }
-    
-    base_status[i] = sta.int_value;
+    base_status[i] = *status;
 
 }
+
 //////////////////////////////
 // Controller/Base -> Robot //
 //////////////////////////////