Skip to content

Commit

Permalink
Remove Radiolink/RC4G when MULTI_AIR
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallanger committed Feb 23, 2024
1 parent e0c44ed commit 1cbce29
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Multiprotocol/RadioLink_cc2500.ino
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ static void __attribute__((unused)) RLINK_send_packet()
#endif
}

#ifndef MULTI_AIR
static void __attribute__((unused)) RLINK_RC4G_send_packet()
{
uint32_t val;
Expand Down Expand Up @@ -296,6 +297,7 @@ static void __attribute__((unused)) RLINK_RC4G_send_packet()
debugln("");
#endif
}
#endif

#define RLINK_TIMING_PROTO 20000-100 // -100 for compatibility with R8EF
#define RLINK_TIMING_RFSEND 10500
Expand All @@ -305,10 +307,14 @@ uint16_t RLINK_callback()
{
if(sub_protocol == RLINK_RC4G)
{
#ifdef MULTI_SYNC
telemetry_set_input_sync(RLINK_RC4G_TIMING_PROTO);
#ifndef MULTI_AIR
#ifdef MULTI_SYNC
telemetry_set_input_sync(RLINK_RC4G_TIMING_PROTO);
#endif
RLINK_RC4G_send_packet();
#else
SUB_PROTO_INVALID;
#endif
RLINK_RC4G_send_packet();
return RLINK_RC4G_TIMING_PROTO;
}
switch(phase)
Expand Down

0 comments on commit 1cbce29

Please sign in to comment.