updated trainer PPM timer disabling capture interrupt flag order to match PPM out,

removed comment
This commit is contained in:
janek
2025-01-20 12:34:35 +01:00
committed by Janek
parent 5466309bff
commit a919688895
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}
}
+1 -1
View File
@@ -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);