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:
Pascal Langer
2019-05-08 22:01:24 +02:00
parent 2dcb6b1987
commit 6748f6ce78
6 changed files with 210 additions and 14 deletions

View File

@@ -1222,10 +1222,10 @@ static void protocol_init()
remote_callback = GD00X_callback;
break;
#endif
#if defined(TEST_NRF24L01_INO)
case PROTO_TEST:
next_callback=initTest();
remote_callback = Test_callback;
#if defined(XN297DUMP_NRF24L01_INO)
case PROTO_XN297DUMP:
next_callback=initXN297Dump();
remote_callback = XN297Dump_callback;
break;
#endif
#endif
@@ -1315,7 +1315,7 @@ void update_serial_data()
else
#endif
option=rx_ok_buff[3]; // Use radio-defined option value
#ifdef FAILSAFE_ENABLE
bool failsafe=false;
if(rx_ok_buff[0]&0x02)