]> git.droids-corp.org - protos/rc_servos.git/commitdiff
rc_servos: use uint8 in byte0 union
authorFabrice Desclaux <serpilliere@droids-corp.org>
Sun, 26 Feb 2012 21:50:49 +0000 (22:50 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Sun, 26 Feb 2012 21:50:49 +0000 (22:50 +0100)
main.c

diff --git a/main.c b/main.c
index 657e54d35fe67c4279924b24e83a2f8564d61f3e..b1083ea8d3d1a559ad5fb1547c44b4ca844c5a04 100644 (file)
--- a/main.c
+++ b/main.c
@@ -40,9 +40,9 @@ register uint8_t rxidx asm("r5");
 register union {
        uint8_t u8;
        struct {
-               uint16_t zero:1;
-               uint16_t cmd_num:4;
-               uint16_t val_msb:3;
+               uint8_t zero:1;
+               uint8_t cmd_num:4;
+               uint8_t val_msb:3;
        };
 } byte0 asm("r6");