Skip to content

Commit 5ade6bc

Browse files
committed
WPL 4th
1 parent 9e099bc commit 5ade6bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Multiprotocol/WPL_nrf24l01.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void __attribute__((unused)) WPL_send_packet()
5050
packet[4 ] = convert_channel_s8b(CH2); // Steering
5151
packet[5 ] = convert_channel_16b_limit(CH3,0x22,0x5E); // Steering trim
5252
packet[6 ] = rx_tx_addr[3]; // 0x32??
53-
packet[7 ] = 0x80; //convert_channel_s8b(CH4); // Aux
53+
packet[7 ] = convert_channel_s8b(CH4); // Aux
5454
packet[9 ] = 0x80 // ?? Bound
5555
| GET_FLAG(CH5_SW, 0x08) // Headlights 100%=on
5656
| GET_FLAG(CH6_SW, 0x04) // Throttle rate 100%=high
@@ -96,7 +96,10 @@ uint16_t WPL_callback()
9696
#endif
9797
if(bind_counter)
9898
if(--bind_counter==0)
99+
{
99100
BIND_DONE;
101+
XN297_SetTXAddr(rx_tx_addr, 5);
102+
}
100103
WPL_send_packet();
101104
return WPL_PACKET_PERIOD;
102105
}

0 commit comments

Comments
 (0)