mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-13 10:17:55 +00:00
Changed Bayang protocol bind to ensure binding only when telemetry and analog aux option selections match on RX and TX
This commit is contained in:
parent
9c8a5e7120
commit
42d8bf352b
@ -53,7 +53,16 @@ static void __attribute__((unused)) BAYANG_send_packet(uint8_t bind)
|
|||||||
{
|
{
|
||||||
#ifdef BAYANG_HUB_TELEMETRY
|
#ifdef BAYANG_HUB_TELEMETRY
|
||||||
if(option & BAYANG_OPTION_FLAG_TELEMETRY)
|
if(option & BAYANG_OPTION_FLAG_TELEMETRY)
|
||||||
packet[0]= 0xA3; // telemetry is enabled
|
if(option & BAYANG_OPTION_FLAG_ANALOGAUX)
|
||||||
|
packet[0]= 0xA1; // telemetry and analog aux are enabled
|
||||||
|
else
|
||||||
|
packet[0]= 0xA3; // telemetry is enabled
|
||||||
|
else if(option & BAYANG_OPTION_FLAG_ANALOGAUX)
|
||||||
|
packet[0]= 0xA2; // analog aux is enabled
|
||||||
|
else
|
||||||
|
#else
|
||||||
|
if(option & BAYANG_OPTION_FLAG_ANALOGAUX)
|
||||||
|
packet[0]= 0xA2; // analog aux is enabled
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
packet[0]= 0xA4;
|
packet[0]= 0xA4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user