mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 20:58:10 +00:00
Remove Radiolink/RC4G when MULTI_AIR
This commit is contained in:
parent
e0c44ed5a8
commit
1cbce29970
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user