Removed SBUS trainer option

This commit is contained in:
Pascal Langer
2021-03-06 11:33:32 +01:00
parent c0285f81f0
commit a5428bc180
11 changed files with 60 additions and 151 deletions

View File

@@ -189,9 +189,9 @@ uint16_t AFHDS2A_RX_callback()
RX_RSSI = map16b(rssi, 160, 8, 0, 128);
AFHDS2A_RX_build_telemetry_packet();
telemetry_link = 1;
#if defined (SEND_SBUS_SERIAL) || defined (SEND_CPPM)
#ifdef SEND_CPPM
if(sub_protocol>0)
telemetry_link = 0x80 + sub_protocol; // Disable telemetry output, type SBUS=1, type CPPM=2
telemetry_link |= 0x80; // Disable telemetry output
#endif
}
rx_data_started = true;