Remove Radiolink/RC4G when MULTI_AIR

This commit is contained in:
pascallanger 2024-02-23 11:06:48 +01:00
parent e0c44ed5a8
commit 1cbce29970

View File

@ -255,6 +255,7 @@ static void __attribute__((unused)) RLINK_send_packet()
#endif #endif
} }
#ifndef MULTI_AIR
static void __attribute__((unused)) RLINK_RC4G_send_packet() static void __attribute__((unused)) RLINK_RC4G_send_packet()
{ {
uint32_t val; uint32_t val;
@ -296,6 +297,7 @@ static void __attribute__((unused)) RLINK_RC4G_send_packet()
debugln(""); debugln("");
#endif #endif
} }
#endif
#define RLINK_TIMING_PROTO 20000-100 // -100 for compatibility with R8EF #define RLINK_TIMING_PROTO 20000-100 // -100 for compatibility with R8EF
#define RLINK_TIMING_RFSEND 10500 #define RLINK_TIMING_RFSEND 10500
@ -305,10 +307,14 @@ uint16_t RLINK_callback()
{ {
if(sub_protocol == RLINK_RC4G) if(sub_protocol == RLINK_RC4G)
{ {
#ifdef MULTI_SYNC #ifndef MULTI_AIR
telemetry_set_input_sync(RLINK_RC4G_TIMING_PROTO); #ifdef MULTI_SYNC
telemetry_set_input_sync(RLINK_RC4G_TIMING_PROTO);
#endif
RLINK_RC4G_send_packet();
#else
SUB_PROTO_INVALID;
#endif #endif
RLINK_RC4G_send_packet();
return RLINK_RC4G_TIMING_PROTO; return RLINK_RC4G_TIMING_PROTO;
} }
switch(phase) switch(phase)