From dd3c29607ed2b303f0fcc8dfd7e4bb9a55dae3ef Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Sun, 26 Feb 2012 22:50:49 +0100 Subject: [PATCH] rc_servos: use uint8 in byte0 union --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.39.5