X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=rc_proto.h;h=fea6c51c955da11b78e4c540f0307a6093f202f3;hp=61b104bb4ec9705e967c6d05459ccc434ea57b3f;hb=21d10011bc4b009d7a09131b955953fa7aba3815;hpb=d6014994e06ebe952d51bef2e36a795f624c4b4d diff --git a/rc_proto.h b/rc_proto.h index 61b104b..fea6c51 100644 --- a/rc_proto.h +++ b/rc_proto.h @@ -11,16 +11,17 @@ 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);