ichinoseki_Bteam_2019 / Mycan

Dependents:   2019_SwitchNode_AR ArmNode 2919_LineSensor 2019_MD ... more

Revision:
9:32f2e17ba653
Parent:
7:cac42b73a4f6
Child:
11:10a25bb14793
diff -r cac42b73a4f6 -r 32f2e17ba653 Mycan.cpp
--- a/Mycan.cpp	Mon Sep 02 05:09:45 2019 +0000
+++ b/Mycan.cpp	Sun Sep 15 17:40:47 2019 +0000
@@ -66,8 +66,7 @@
     can.read(received);
     rd_decimal = *(can_decimal *)received.data;
     
-    decimal_values_storage[received.id].value[0] = rd_decimal.value[0];
-    decimal_values_storage[received.id].value[1] = rd_decimal.value[1];
+    decimal_values_storage[received.id] = rd_decimal;
 }
 
 float Mycan::get(uint32_t _id, int _num)