[Taranis] Reboot when loading a model with an external module ON

This commit is contained in:
bsongis@gmail.com
2013-05-15 08:13:07 +00:00
parent 90be0bae10
commit db93fb0f14
+4 -2
View File
@@ -487,13 +487,15 @@ extern "C" void TIM8_CC_IRQHandler()
TIM8->CCR1 = pxxStream[EXTERNAL_MODULE][0] ;
TIM8->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt
}
else {
else if (s_current_protocol[EXTERNAL_MODULE] == PROTO_PPM) {
ppmStreamPtr[EXTERNAL_MODULE] = ppmStream[EXTERNAL_MODULE];
TIM8->DIER |= TIM_DIER_UDE ;
TIM8->SR &= ~TIM_SR_UIF ; // Clear this flag
TIM8->DIER |= TIM_DIER_UIE ; // Enable this interrupt
}
else {
TIM1->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt
}
}
extern "C" void TIM8_UP_TIM13_IRQHandler()