File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1919#define VERSION_MAJOR 1
2020#define VERSION_MINOR 3
2121#define VERSION_REVISION 4
22- #define VERSION_PATCH_LEVEL 35
22+ #define VERSION_PATCH_LEVEL 36
2323
2424#define MODE_SERIAL 0
2525
Original file line number Diff line number Diff line change 1919#include " iface_nrf250k.h"
2020
2121// #define SLT_Q200_FORCE_ID
22+ #define SLT_V1_4_FORCE_ID
2223
2324// For code readability
2425#define SLT_PAYLOADSIZE_V1 7
@@ -94,10 +95,10 @@ static void __attribute__((unused)) SLT_set_freq(void)
9495 }
9596 }
9697 }
97- #if 0
98+ #ifdef DEBUG_SERIAL
9899 debug (" CH:" );
99100 for (uint8_t i = 0 ; i < SLT_NFREQCHANNELS; ++i)
100- debug(" %02X" , hopping_frequency[i]);
101+ debug (" %02X(%d) " , hopping_frequency[i] , hopping_frequency[i]);
101102 debugln ();
102103 #endif
103104
@@ -289,6 +290,10 @@ void SLT_init()
289290 /* rx_tx_addr[0]=0x01;rx_tx_addr[1]=0x02;rx_tx_addr[2]=0x0B;rx_tx_addr[3]=0x57;*/
290291 #endif
291292 }
293+ #ifdef SLT_V1_4_FORCE_ID
294+ if (sub_protocol==SLT_V1_4)
295+ memcpy (rx_tx_addr," \xF4\x71\x8D\x01 " ,SLT_TXID_SIZE);
296+ #endif
292297 SLT_RF_init ();
293298 SLT_set_freq ();
294299 phase = SLT_BUILD;
@@ -305,10 +310,6 @@ void SLT_init()
305310 #ifdef MULTI_SYNC
306311 packet_period = 18000 ; // 18ms
307312 #endif
308- // Test IDs
309- MProtocol_id = MProtocol_id_master ^ (1 <<RX_num);
310- set_rx_tx_addr (MProtocol_id);
311- debugln (" Try ID: %lx" , MProtocol_id);
312313 }
313314 else // V2
314315 {
You can’t perform that action at this time.
0 commit comments