@@ -19,7 +19,6 @@ Multiprotocol is distributed in the hope that it will be useful,
1919#include " iface_xn297.h"
2020
2121#define FORCE_WPL_ORIGINAL_ID
22- // #define WPL_TEST
2322
2423#define WPL_PACKET_PERIOD 9875
2524#define WPL_RF_NUM_CHANNELS 4
@@ -31,9 +30,6 @@ static void __attribute__((unused)) WPL_send_packet()
3130 #if 0
3231 debug("no:%d, rf:%d, ",hopping_frequency_no + (IS_BIND_IN_PROGRESS?0:4),hopping_frequency[hopping_frequency_no + (IS_BIND_IN_PROGRESS?0:4)]);
3332 #endif
34- #ifdef WPL_TEST
35- memset (hopping_frequency+4 ,option,4 );
36- #endif
3733 XN297_Hopping (hopping_frequency_no + (IS_BIND_IN_PROGRESS?0 :4 ) );
3834 hopping_frequency_no++;
3935 hopping_frequency_no &= WPL_RF_NUM_CHANNELS-1 ; // 4 RF channels
@@ -86,14 +82,11 @@ static void __attribute__((unused)) WPL_initialize_txid()
8682{
8783 // Bind frequencies
8884 memcpy (hopping_frequency ," \x17\x25\x46\x36 " , WPL_RF_NUM_CHANNELS); // 23=17, 37=25, 70=46, 54=36
89- // Normal frequencies
90- memcpy (hopping_frequency+4 ," \x0C\x2A\x3D\x1D " , WPL_RF_NUM_CHANNELS); // 12=0C, 42=2A, 61=3D, 29=1D
9185 #ifdef FORCE_WPL_ORIGINAL_ID
86+ // Original ID
9287 memcpy (rx_tx_addr," \x96\x2A\xA9\x32\xB4 " ,5 );
93- #endif
94- #ifdef WPL_TEST
95- memcpy (rx_tx_addr," \x96\x2A\xA9\x32\xB4 " ,5 );
96- rx_tx_addr[0 ] += RX_num;
88+ // Normal frequencies
89+ memcpy (hopping_frequency+4 ," \x0C\x2A\x3D\x1D " , WPL_RF_NUM_CHANNELS); // 12=0C, 42=2A, 61=3D, 29=1D
9790 #endif
9891}
9992
0 commit comments