Disable MULTI_SYNC when using RX or Scanner protocols

This commit is contained in:
pascallanger 2019-10-16 20:18:24 +02:00
parent f3b9206d67
commit 40afd67fc6
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 0 #define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 17 #define VERSION_PATCH_LEVEL 18
//****************** //******************
// Protocols // Protocols

View File

@ -840,7 +840,7 @@ void TelemetryUpdate()
return; return;
} }
#ifdef MULTI_SYNC #ifdef MULTI_SYNC
if ( (now - lastInputSync) > INPUT_SYNC_TIME) if ( (now - lastInputSync) > INPUT_SYNC_TIME && protocol != PROTO_SCANNER && protocol != PROTO_FRSKY_RX && protocol != PROTO_AFHDS2A_RX && protocol != PROTO_XN297DUMP )
{ {
mult_send_inputsync(); mult_send_inputsync();
lastInputSync = now; lastInputSync = now;
@ -848,7 +848,6 @@ void TelemetryUpdate()
} }
#endif #endif
#endif #endif
#if defined SPORT_TELEMETRY #if defined SPORT_TELEMETRY
if (protocol==PROTO_FRSKYX if (protocol==PROTO_FRSKYX
#ifdef TELEMETRY_FRSKYX_TO_FRSKYD #ifdef TELEMETRY_FRSKYX_TO_FRSKYD