mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
Cosmetics
This commit is contained in:
parent
5c495be5ce
commit
d0579f26a6
1 changed files with 1 additions and 7 deletions
|
@ -488,13 +488,7 @@ static int luaSportTelemetryPush(lua_State * L)
|
|||
outputTelemetryBuffer.pushSportPacketWithBytestuffing(packet);
|
||||
#if defined(PXX2)
|
||||
uint8_t destination = (IS_INTERNAL_MODULE_ON() ? INTERNAL_MODULE : EXTERNAL_MODULE);
|
||||
|
||||
if (isModulePXX2(destination)) {
|
||||
outputTelemetryBuffer.setDestination(destination << 2);
|
||||
}
|
||||
else {
|
||||
outputTelemetryBuffer.setDestination(TELEMETRY_ENDPOINT_SPORT);
|
||||
}
|
||||
outputTelemetryBuffer.setDestination(isModulePXX2(destination) ? (destination << 2) : TELEMETRY_ENDPOINT_SPORT);
|
||||
#else
|
||||
outputTelemetryBuffer.setDestination(TELEMETRY_ENDPOINT_SPORT);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue