test

Fork of CANnucleo by Zoltan Hudak

Revision:
4:38403b42718b
Parent:
0:e29bc8e0dddd
Child:
5:b53e5ee15315
diff -r 0fae6b54a2ee -r 38403b42718b CAN.h
--- a/CAN.h	Thu Jul 23 13:05:27 2015 +0000
+++ b/CAN.h	Thu Jul 23 13:10:34 2015 +0000
@@ -50,16 +50,6 @@
         memset(data, 0, 8);
     }
 
-    /** Copy constructor.
-     */
-    CANMessage(const CANMessage& canMessage) {
-        len     = canMessage.len;
-        type    = canMessage.type;
-        format  = canMessage.format;
-        id      = canMessage.id;
-        memcpy(data, canMessage.data, canMessage.len);
-    }
-
     /** Creates CAN message with specific content.
      */
     CANMessage(int _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard) {
@@ -83,6 +73,16 @@
     /*********************************************************************/
     /*********************************************************************/
     /*********************************************************************/
+    /** Copy constructor.
+     */
+    CANMessage(const CANMessage& canMessage) {
+        len     = canMessage.len;
+        type    = canMessage.type;
+        format  = canMessage.format;
+        id      = canMessage.id;
+        memcpy(data, canMessage.data, canMessage.len);
+    }
+
     /** Clears CAN message content
      */
     void clear(void) {