Pulses refactoring ... WIP

This commit is contained in:
Bertrand Songis
2018-10-09 07:57:58 +02:00
parent f798bbfcc7
commit 946f66b128
12 changed files with 536 additions and 586 deletions
+2 -2
View File
@@ -221,8 +221,8 @@ void setupPulses(uint8_t port)
#if defined(PXX2)
case PROTO_PXX2:
if (telemetryProtocol == PROTOCOL_FRSKY_SPORT && !init_needed) {
createPXX2ChannelsFrame(port);
sportSendBuffer(modulePulsesData[port].pxx_uart.pulses, modulePulsesData[port].pxx_uart.ptr - modulePulsesData[port].pxx_uart.pulses);
modulePulsesData[port].pxx2.setupFrame(port);
sportSendBuffer(modulePulsesData[port].pxx2.getData(), modulePulsesData[port].pxx2.getSize());
}
scheduleNextMixerCalculation(port, PXX2_PERIOD);
break;