From 1a8d6b735037f76863f79d910fb9464d7926a6ec Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 20 Feb 2012 19:58:56 +0100 Subject: [PATCH] rc_proto: packed struct --- rc_proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc_proto.h b/rc_proto.h index 96716d2..a9a826b 100644 --- a/rc_proto.h +++ b/rc_proto.h @@ -39,12 +39,12 @@ 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 -- 2.20.1