From: Olivier Matz Date: Thu, 31 Oct 2013 18:44:48 +0000 (+0100) Subject: fix spi event period X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=commitdiff_plain;h=8315b52a0e503089149fce525cbe78c007ff429d fix spi event period --- diff --git a/spi_servo.c b/spi_servo.c index 4b0d241..c180bc9 100644 --- a/spi_servo.c +++ b/spi_servo.c @@ -24,8 +24,8 @@ * callback is unloaded. */ -/* 1ms */ -#define SPI_EVT_PERIOD (10000UL/SCHEDULER_UNIT) +/* 1 scheduler unit (682us at 12Mhz) */ +#define SPI_EVT_PERIOD (1) #define PPM_BIT 0x01 #define BYPASS_BIT 0x02