[Taranis] Reboot when changing model if old model had both modules OFF

This commit is contained in:
bernet.andre@gmail.com
2013-04-30 06:42:22 +00:00
parent b9b36220da
commit ec2445e0c8
2 changed files with 4 additions and 4 deletions
+4
View File
@@ -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
-4
View File
@@ -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) ;
}