Implement s.port polling for multi (#5521)

Sport polling is implemented quite low level for regular s.port.
Go another approach for multi and add another multi type for s.port polling
This commit is contained in:
Arne Schwabe
2017-12-18 23:00:03 +01:00
committed by Bertrand Songis
parent d0ec3e0266
commit 7dd32c8878
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -386,6 +386,10 @@ void telemetryInit(uint8_t protocol)
else if (protocol == PROTOCOL_MULTIMODULE || protocol == PROTOCOL_FLYSKY_IBUS) {
// The DIY Multi module always speaks 100000 baud regardless of the telemetry protocol in use
telemetryPortInit(MULTIMODULE_BAUDRATE, TELEMETRY_SERIAL_8E2);
#if defined(LUA)
outputTelemetryBufferSize = 0;
outputTelemetryBufferTrigger = 0x7E;
#endif
}
else if (protocol == PROTOCOL_SPEKTRUM) {
// Spektrum's own small race RX (SPM4648) uses 125000 8N1, use the same since there is no real standard