From: Fabrice Desclaux Date: Sun, 26 Feb 2012 21:50:49 +0000 (+0100) Subject: rc_servos: use uint8 in byte0 union X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd3c29607ed2b303f0fcc8dfd7e4bb9a55dae3ef;p=protos%2Frc_servos.git rc_servos: use uint8 in byte0 union --- diff --git a/main.c b/main.c index 657e54d..b1083ea 100644 --- 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");