ArduCopter: bug fix for telemetry not working on APM1.

SPI3 is also UART3.  On APM1 we use UART3 for telemetry and don't need SPI3.
This commit is contained in:
rmackay9 2012-10-18 19:15:21 +09:00
parent d2912e4e01
commit a2a3eed063
1 changed files with 4 additions and 0 deletions

View File

@ -103,8 +103,12 @@ static void init_ardupilot()
#endif
SPI.begin();
SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
SPI3.begin();
SPI3.setSpeed(SPI3_SPEED_2MHZ);
#endif
//
// Initialize the isr_registry.
//