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

index 96716d296f67e5476a5387bb467485f5ebbbc2ac..a9a826b28935806fa442f66ac4034bfb9d6cfec2 100644 (file)
 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));
 
 
 #endif