From e3f43b953a1103fa4e9f4f932a04e8ab51b3b884 Mon Sep 17 00:00:00 2001 From: Olivier MATZ Date: Thu, 23 Feb 2012 21:22:55 +0100 Subject: [PATCH] rc_servos: implement bypass mode --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index a27bf10..53fd747 100644 --- a/main.c +++ b/main.c @@ -24,6 +24,7 @@ static volatile uint8_t rxbuf[16]; register uint8_t rxlen asm("r2"); register uint8_t done asm("r3"); register uint8_t portval asm("r4"); +register uint8_t bypass asm("r5"); SIGNAL(TIMER1_COMPA_vect) { @@ -94,6 +95,10 @@ int main(void) break; poll_spi(); } + /* bypass mode */ + while (bypass == 1) { + PORTC = PORTB; + } } return 0; -- 2.39.5