updated trainer PPM timer disabling capture interrupt flag order to match PPM out,
removed comment
This commit is contained in:
@@ -223,7 +223,7 @@ void stopPulsesInternalModule()
|
||||
{
|
||||
if (moduleState[INTERNAL_MODULE].protocol != PROTOCOL_CHANNELS_UNINITIALIZED) {
|
||||
mixerSchedulerSetPeriod(INTERNAL_MODULE, 0);
|
||||
intmoduleStop(); // was disable_afhds2a(INTERNAL_MODULE);
|
||||
intmoduleStop();
|
||||
moduleState[INTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,8 +37,8 @@ void init_trainer_capture() {
|
||||
void stop_trainer_capture()
|
||||
{
|
||||
// disable PPM input capture
|
||||
CLEAR_BIT(EXTMODULE_TIMER->CCER, TIM_CCER_CC1E);
|
||||
CLEAR_BIT(EXTMODULE_TIMER->DIER, TIM_DIER_CC1IE);
|
||||
CLEAR_BIT(EXTMODULE_TIMER->CCER, TIM_CCER_CC1E);
|
||||
|
||||
// Keep timer running because PPM OUT uses the same timer
|
||||
// NVIC_DisableIRQ(EXTMODULE_TIMER_IRQn);
|
||||
|
||||
Reference in New Issue
Block a user