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:
parent
d2912e4e01
commit
a2a3eed063
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user