FrSky R9: adding CH1-8/CH9-16 and Telem ON/OFF (not that telem is supported yet)

This commit is contained in:
Pascal Langer
2020-07-01 15:39:40 +02:00
parent db4aad04a7
commit 15395de579
4 changed files with 12 additions and 9 deletions

View File

@@ -1063,7 +1063,8 @@ static void protocol_init()
rx_rc_chan[ch] = 1024;
#endif
#endif
binding_idx=0;
//Set global ID and rx_tx_addr
MProtocol_id = RX_num + MProtocol_id_master;
set_rx_tx_addr(MProtocol_id);
@@ -1878,8 +1879,8 @@ void update_serial_data()
#endif
if(rx_len>27)
{ // Data available for the current protocol
#if defined FRSKYX_CC2500_INO
if((protocol==PROTO_FRSKYX || protocol==PROTO_FRSKYX2) && rx_len==28)
#if defined(FRSKYX_CC2500_INO) and defined(FRSKYR9_SX1276_INO)
if((protocol==PROTO_FRSKYX || protocol==PROTO_FRSKYX2 || protocol==PROTO_FRSKY_R9) && rx_len==28)
{//Protocol waiting for 1 byte during bind
binding_idx=rx_ok_buff[27];
}