WiP: refactor serial ports

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:12 +01:00
parent 87a3d2f9e7
commit f733810c79
27 changed files with 601 additions and 199 deletions
+7 -1
View File
@@ -21,6 +21,10 @@
#include "opentx.h"
#if defined(CROSSFIRE)
#include "pulses/crossfire.h"
#endif
void extmoduleStop()
{
EXTERNAL_MODULE_OFF();
@@ -413,7 +417,9 @@ void extmoduleSendNextFrame()
#if defined(CROSSFIRE)
case PROTOCOL_CHANNELS_CROSSFIRE:
sportSendBuffer(extmodulePulsesData.crossfire.pulses, extmodulePulsesData.crossfire.length);
if (CrossfireModuleDriver.sendPulses) {
CrossfireModuleDriver.sendPulses((void*)EXTERNAL_MODULE);
}
break;
#endif