git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xbee_neighbor: replace printf printf_P
[protos/xbee-avr.git]
/
rc_proto.h
diff --git
a/rc_proto.h
b/rc_proto.h
index
61b104b
..
fea6c51
100644
(file)
--- a/
rc_proto.h
+++ b/
rc_proto.h
@@
-11,16
+11,17
@@
struct rc_proto_hdr {
uint8_t type;
struct rc_proto_hdr {
uint8_t type;
-};
+} __attribute__((packed));
+
struct rc_proto_channel {
uint8_t type;
int16_t axis[AXIS_NUMBER];
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;
struct rc_proto_range {
uint8_t type;
uint8_t power_level;
-};
+}
__attribute__((packed))
;
void rc_proto_rx_range(int power_level);
void rc_proto_rx_range(int power_level);