mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-15 12:23: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user