[Taranis] It's now impossible to have Trainer input in the external module and a regular module enabled

This commit is contained in:
Bertrand Songis
2016-03-21 18:37:17 +01:00
parent bd3c52d6ac
commit 27dc84028c
7 changed files with 115 additions and 101 deletions
+2 -2
View File
@@ -177,7 +177,7 @@ void stop_cppm_on_heartbeat_capture(void)
TRAINER_TIMER->CR1 &= ~TIM_CR1_CEN; // Stop counter
NVIC_DisableIRQ(TRAINER_TIMER_IRQn); // Stop Interrupt
if (!IS_PULSES_EXTERNAL_MODULE()) {
if (!IS_EXTERNAL_MODULE_PRESENT()) {
EXTERNAL_MODULE_OFF();
}
}
@@ -236,7 +236,7 @@ void stop_sbus_on_heartbeat_capture(void)
configure_pins(HEARTBEAT_GPIO_PIN, PIN_INPUT | PIN_PORTC);
NVIC_DisableIRQ(HEARTBEAT_USART_IRQn);
if (!IS_PULSES_EXTERNAL_MODULE()) {
if (!IS_EXTERNAL_MODULE_PRESENT()) {
EXTERNAL_MODULE_OFF();
}
}