Skip to content

Commit e35c4d3

Browse files
committed
WPL 1 ID
1 parent ba59605 commit e35c4d3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Multiprotocol/Multi_Protos.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ const mm_protocol_definition multi_protocols[] = {
520520
{PROTO_WL91X, STR_WL91X, NO_SUBTYPE, 0, OPTION_NONE, 0, 0, SW_NRF, WL91X_init, WL91X_callback },
521521
#endif
522522
#if defined(WPL_NRF24L01_INO)
523-
{PROTO_WPL, STR_WPL, NO_SUBTYPE, 0, OPTION_OPTION, 0, 0, SW_NRF, WPL_init, WPL_callback },
523+
{PROTO_WPL, STR_WPL, NO_SUBTYPE, 0, OPTION_NONE, 0, 0, SW_NRF, WPL_init, WPL_callback },
524524
#endif
525525
#if defined(XERALL_NRF24L01_INO)
526526
{PROTO_XERALL, STR_XERALL, NO_SUBTYPE, 0, OPTION_NONE, 0, 0, SW_NRF, XERALL_init, XERALL_callback },

Multiprotocol/WPL_nrf24l01.ino

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)