1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 09:15:38 +03:00

[Crossfire] Upstream link development started

This commit is contained in:
Bertrand Songis 2016-06-11 20:05:42 +02:00
parent 8523a2fdaf
commit 862fa5525e
11 changed files with 192 additions and 85 deletions

View file

@ -421,6 +421,7 @@ void telemetryInit(uint8_t protocol)
#if defined(CROSSFIRE)
else if (protocol == PROTOCOL_PULSES_CROSSFIRE) {
telemetryPortInit(CROSSFIRE_BAUDRATE);
luaOutputTelemetryPacket.crossfire.clear();
telemetryPortSetDirectionOutput();
}
#endif
@ -430,6 +431,7 @@ void telemetryInit(uint8_t protocol)
}
else {
telemetryPortInit(FRSKY_SPORT_BAUDRATE);
luaOutputTelemetryPacket.sport.clear();
}
#if defined(REVX) && !defined(SIMU)
@ -455,5 +457,5 @@ NOINLINE uint8_t getRssiAlarmValue(uint8_t alarm)
#if defined(LUA)
Fifo<LuaTelemetryPacket, 16> * luaInputTelemetryFifo = NULL;
LuaTelemetryPacket luaOutputTelemetryPacket = { 0x7E, 0x0, 0x0, 0x0 };
LuaTelemetryPacket luaOutputTelemetryPacket;
#endif