From 5d39ce22b6dc5693c52e402491cd1dcaf968c6b4 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Wed, 9 Oct 2013 00:01:26 +0200 Subject: [PATCH] transmit 6 servos instead of 3 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 67661d6..f06bc44 100644 --- a/main.c +++ b/main.c @@ -120,7 +120,7 @@ static void poll_spi(void) SPDR = byte1_tx.u8; } spi_out_idx ++; - if (spi_out_idx >= NB_SERVO) + if (spi_out_idx >= NB_SERVO * 2) spi_out_idx = 0; /* RX */ -- 2.39.5