From 984e179c0e079a2b7af76cb31da2e01321451fec Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Wed, 15 May 2013 08:38:09 +0000 Subject: [PATCH] [Taranis] Reboot when loading a model with an external module ON --- src/targets/taranis/pulses_driver.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/targets/taranis/pulses_driver.cpp b/src/targets/taranis/pulses_driver.cpp index ef83a3ccf..729ff6402 100644 --- a/src/targets/taranis/pulses_driver.cpp +++ b/src/targets/taranis/pulses_driver.cpp @@ -146,7 +146,6 @@ static void disable_pa10_none() NVIC_DisableIRQ(TIM1_CC_IRQn) ; TIM1->DIER &= ~TIM_DIER_CC2IE ; TIM1->CR1 &= ~TIM_CR1_CEN ; - INTERNAL_RF_OFF(); } static void init_pa7_none() @@ -189,7 +188,6 @@ static void disable_pa7_none() NVIC_DisableIRQ(TIM8_CC_IRQn) ; TIM8->DIER &= ~TIM_DIER_CC2IE ; TIM8->CR1 &= ~TIM_CR1_CEN ; - EXTERNAL_RF_OFF(); } static void init_pa10_pxx() @@ -494,7 +492,7 @@ extern "C" void TIM8_CC_IRQHandler() TIM8->DIER |= TIM_DIER_UIE ; // Enable this interrupt } else { - TIM1->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt + TIM8->DIER |= TIM_DIER_CC2IE ; // Enable this interrupt } }