]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
rc_proto: packed struct
authorFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 19:21:54 +0000 (20:21 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 19:21:54 +0000 (20:21 +0100)
rc_proto.h

index 61b104bb4ec9705e967c6d05459ccc434ea57b3f..fea6c51c955da11b78e4c540f0307a6093f202f3 100644 (file)
 
 struct rc_proto_hdr {
        uint8_t type;
-};
+} __attribute__((packed));
+
 struct rc_proto_channel {
        uint8_t type;
        int16_t axis[AXIS_NUMBER];
-};
+} __attribute__((packed));
 
 struct rc_proto_range {
        uint8_t type;
        uint8_t power_level;
-};
+} __attribute__((packed));
 
 
 void rc_proto_rx_range(int power_level);