mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-01-07 15:43:16 +00:00
Add XN297 Dump protocol
Protocol number: 63 Sub protocols: 0=250Kb, 1=1Mb, 2=2Mb Option: -1=scan RF channels, 0-84=RF channel DEBUG_SERIAL must be enabled If a valid frame is received the frame will be sent on the serial port.
This commit is contained in:
@@ -109,8 +109,6 @@ static uint8_t tx_payload_len = 0; // Length of the packet stored in packet
|
||||
static uint8_t rx_payload_len = 0; // Length of the packet stored in rx_packet
|
||||
static uint8_t rx_packet[MAX_PACKET_SIZE]; // For reading in ACK payloads
|
||||
|
||||
static uint16_t cflie_counter;
|
||||
static uint32_t packet_counter;
|
||||
static uint8_t data_rate;
|
||||
|
||||
enum {
|
||||
@@ -194,8 +192,6 @@ static void send_packet()
|
||||
// Transmit the payload
|
||||
NRF24L01_WritePayload(packet, tx_payload_len);
|
||||
|
||||
++packet_counter;
|
||||
|
||||
// // Check and adjust transmission power.
|
||||
NRF24L01_SetPower();
|
||||
}
|
||||
@@ -256,7 +252,6 @@ static void send_search_packet()
|
||||
|
||||
NRF24L01_WritePayload(buf, sizeof(buf));
|
||||
|
||||
++packet_counter;
|
||||
}
|
||||
|
||||
// Frac 16.16
|
||||
@@ -782,7 +777,6 @@ static uint16_t cflie_callback()
|
||||
break;
|
||||
case PKT_TIMEOUT:
|
||||
send_search_packet();
|
||||
cflie_counter = CFLIE_BIND_COUNT;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user