From fa8b41d12b5f3221fa9c5df7a07f4abf65bef208 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 22 Nov 2021 16:20:44 +0100 Subject: [PATCH] Fixed PPM driver --- radio/src/pulses/ppm.cpp | 7 ++++--- radio/src/targets/horus/extmodule_driver.cpp | 2 +- radio/src/targets/taranis/extmodule_driver.cpp | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/radio/src/pulses/ppm.cpp b/radio/src/pulses/ppm.cpp index d40df31bd..33b2a8820 100644 --- a/radio/src/pulses/ppm.cpp +++ b/radio/src/pulses/ppm.cpp @@ -61,7 +61,8 @@ void setupPulsesPPMInternalModule() void setupPulsesPPMExternalModule() { - setupPulsesPPM(&extmodulePulsesData.ppm, g_model.moduleData[EXTERNAL_MODULE].channelsStart, g_model.moduleData[EXTERNAL_MODULE].channelsCount, g_model.moduleData[EXTERNAL_MODULE].ppm.frameLength); + setupPulsesPPM(&extmodulePulsesData.ppm, + g_model.moduleData[EXTERNAL_MODULE].channelsStart, + g_model.moduleData[EXTERNAL_MODULE].channelsCount, + g_model.moduleData[EXTERNAL_MODULE].ppm.frameLength); } - - diff --git a/radio/src/targets/horus/extmodule_driver.cpp b/radio/src/targets/horus/extmodule_driver.cpp index ff8e926ab..2ac865adf 100644 --- a/radio/src/targets/horus/extmodule_driver.cpp +++ b/radio/src/targets/horus/extmodule_driver.cpp @@ -371,7 +371,7 @@ extern "C" void EXTMODULE_TIMER_IRQHandler() EXTMODULE_TIMER->DIER &= ~TIM_DIER_CC2IE; // Stop this interrupt EXTMODULE_TIMER->SR &= ~TIM_SR_CC2IF; - setupPulsesPPMExternalModule(); + setupPulsesExternalModule(); extmoduleSendNextFramePpm( extmodulePulsesData.ppm.pulses, extmodulePulsesData.ppm.ptr - extmodulePulsesData.ppm.pulses, diff --git a/radio/src/targets/taranis/extmodule_driver.cpp b/radio/src/targets/taranis/extmodule_driver.cpp index 86e33bfb4..302b27c21 100644 --- a/radio/src/targets/taranis/extmodule_driver.cpp +++ b/radio/src/targets/taranis/extmodule_driver.cpp @@ -301,7 +301,7 @@ extern "C" void EXTMODULE_TIMER_CC_IRQHandler() EXTMODULE_TIMER->DIER &= ~TIM_DIER_CC2IE; // Stop this interrupt EXTMODULE_TIMER->SR &= ~TIM_SR_CC2IF; - setupPulsesPPMExternalModule(); + setupPulsesExternalModule(); extmoduleSendNextFramePpm( extmodulePulsesData.ppm.pulses, extmodulePulsesData.ppm.ptr - extmodulePulsesData.ppm.pulses,