From: Olivier Matz Date: Tue, 8 Oct 2013 22:01:26 +0000 (+0200) Subject: transmit 6 servos instead of 3 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5d39ce22b6dc5693c52e402491cd1dcaf968c6b4;p=protos%2Frc_servos.git transmit 6 servos instead of 3 --- 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 */