mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 17:58:13 +00:00
Remove Kyosho/FHSS&SYNC when MULTI_AIR
This commit is contained in:
parent
968293e599
commit
390e5dd654
@ -24,6 +24,7 @@
|
|||||||
//Kyosho constants & variables
|
//Kyosho constants & variables
|
||||||
#define KYOSHO_BIND_COUNT 2500
|
#define KYOSHO_BIND_COUNT 2500
|
||||||
|
|
||||||
|
#ifndef MULTI_AIR
|
||||||
static void __attribute__((unused)) KYOSHO_send_packet()
|
static void __attribute__((unused)) KYOSHO_send_packet()
|
||||||
{
|
{
|
||||||
//ID
|
//ID
|
||||||
@ -88,6 +89,7 @@ static void __attribute__((unused)) KYOSHO_send_packet()
|
|||||||
#endif
|
#endif
|
||||||
A7105_WriteData(37, rf_ch_num);
|
A7105_WriteData(37, rf_ch_num);
|
||||||
}
|
}
|
||||||
|
#endif //MULTI_AIR
|
||||||
|
|
||||||
static void __attribute__((unused)) KYOSHO_hype_send_packet()
|
static void __attribute__((unused)) KYOSHO_hype_send_packet()
|
||||||
{
|
{
|
||||||
@ -165,7 +167,11 @@ uint16_t KYOSHO_callback()
|
|||||||
if(sub_protocol==KYOSHO_HYPE)
|
if(sub_protocol==KYOSHO_HYPE)
|
||||||
KYOSHO_hype_send_packet();
|
KYOSHO_hype_send_packet();
|
||||||
else //FHSS && SYNCRO
|
else //FHSS && SYNCRO
|
||||||
|
#ifndef MULTI_AIR
|
||||||
KYOSHO_send_packet();
|
KYOSHO_send_packet();
|
||||||
|
#else
|
||||||
|
SUB_PROTO_INVALID;
|
||||||
|
#endif
|
||||||
return packet_period;
|
return packet_period;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user