diff --git a/src/eeprom_rlc.cpp b/src/eeprom_rlc.cpp index 8a3b5b62b..31941053f 100644 --- a/src/eeprom_rlc.cpp +++ b/src/eeprom_rlc.cpp @@ -958,6 +958,10 @@ void eeLoadModel(uint8_t id) resumeMixerCalculations(); // TODO pulses should be started after mixer calculations ... +#if defined(PCBTARANIS) + startPulses(); +#endif + #if defined(FRSKY) frskySendAlarms(); #endif diff --git a/src/taranis/pulses_driver.cpp b/src/taranis/pulses_driver.cpp index f847f7bd5..c16751485 100644 --- a/src/taranis/pulses_driver.cpp +++ b/src/taranis/pulses_driver.cpp @@ -36,8 +36,6 @@ #include "../opentx.h" -// CURRENTLY EXPECTS ONLY PXX ON THE INTERNAL SIGNAL, PPM ALLOWED ON THE EXTERNAL SIGNAL - void setupPulses(unsigned int port); void setupPulsesPPM(unsigned int port); void setupPulsesPXX(unsigned int port); @@ -143,7 +141,6 @@ static void init_pa10_pxx() TIM1->SR &= ~TIM_SR_CC2IF ; // Clear flag TIM1->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt TIM1->CR1 |= TIM_CR1_CEN ; -// NVIC_SetPriority(TIM1_CC_IRQn, 1); // Debug - high priority, doesn't help NVIC_EnableIRQ(TIM1_CC_IRQn) ; } @@ -302,7 +299,6 @@ static void init_pa7_pxx() TIM8->SR &= ~TIM_SR_CC2IF ; // Clear flag TIM8->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt TIM8->CR1 |= TIM_CR1_CEN ; -// NVIC_SetPriority(TIM8_CC_IRQn, 1); // Debug - high priority, doesn't help NVIC_EnableIRQ(TIM8_CC_IRQn) ; }