Remove Kyosho/FHSS&SYNC when MULTI_AIR

This commit is contained in:
pascallanger 2024-02-22 17:40:56 +01:00
parent 968293e599
commit 390e5dd654

View File

@ -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;
} }