Skip to content

Commit c3d45ae

Browse files
committed
Fix LoRa P2P RX example
1 parent a308b54 commit c3d45ae

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

examples/RAK11200/communications/LoRa/RAK13300_LoRaP2P/LoRaP2P_RX/LoRaP2P_RX.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void setup()
8080

8181
// Start LoRa
8282
Serial.println("Starting Radio.Rx");
83-
Radio.Rx(RX_TIMEOUT_VALUE);
83+
Radio.Rx(0);
8484
}
8585

8686
void loop()
@@ -105,21 +105,21 @@ void OnRxDone(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
105105
Serial.printf("%02X ", RcvBuffer[idx]);
106106
}
107107
Serial.println("");
108-
Radio.Rx(RX_TIMEOUT_VALUE);
108+
Radio.Rx(0);
109109
}
110110

111111
/**@brief Function to be executed on Radio Rx Timeout event
112112
*/
113113
void OnRxTimeout(void)
114114
{
115115
Serial.println("OnRxTimeout");
116-
Radio.Rx(RX_TIMEOUT_VALUE);
116+
Radio.Rx(0);
117117
}
118118

119119
/**@brief Function to be executed on Radio Rx Error event
120120
*/
121121
void OnRxError(void)
122122
{
123123
Serial.println("OnRxError");
124-
Radio.Rx(RX_TIMEOUT_VALUE);
124+
Radio.Rx(0);
125125
}

examples/RAK11300/communications/LoRa/LoRaP2P/LoRaP2P_RX/LoRaP2P_RX.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void setup()
8787

8888
// Start LoRa
8989
Serial.println("Starting Radio.Rx");
90-
Radio.Rx(RX_TIMEOUT_VALUE);
90+
Radio.Rx(0);
9191
}
9292

9393
void loop()
@@ -112,21 +112,21 @@ void OnRxDone(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
112112
Serial.printf("%02X ", RcvBuffer[idx]);
113113
}
114114
Serial.println("");
115-
Radio.Rx(RX_TIMEOUT_VALUE);
115+
Radio.Rx(0);
116116
}
117117

118118
/**@brief Function to be executed on Radio Rx Timeout event
119119
*/
120120
void OnRxTimeout(void)
121121
{
122122
Serial.println("OnRxTimeout");
123-
Radio.Rx(RX_TIMEOUT_VALUE);
123+
Radio.Rx(0);
124124
}
125125

126126
/**@brief Function to be executed on Radio Rx Error event
127127
*/
128128
void OnRxError(void)
129129
{
130130
Serial.println("OnRxError");
131-
Radio.Rx(RX_TIMEOUT_VALUE);
131+
Radio.Rx(0);
132132
}

examples/RAK4630/communications/LoRa/LoRaP2P/LoRaP2P_RX/LoRaP2P_RX.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void setup()
9393

9494
// Start LoRa
9595
Serial.println("Starting Radio.Rx");
96-
Radio.Rx(RX_TIMEOUT_VALUE);
96+
Radio.Rx(0);
9797
}
9898

9999
void loop()
@@ -118,21 +118,21 @@ void OnRxDone(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
118118
Serial.printf("%02X ", RcvBuffer[idx]);
119119
}
120120
Serial.println("");
121-
Radio.Rx(RX_TIMEOUT_VALUE);
121+
Radio.Rx(0);
122122
}
123123

124124
/**@brief Function to be executed on Radio Rx Timeout event
125125
*/
126126
void OnRxTimeout(void)
127127
{
128128
Serial.println("OnRxTimeout");
129-
Radio.Rx(RX_TIMEOUT_VALUE);
129+
Radio.Rx(0);
130130
}
131131

132132
/**@brief Function to be executed on Radio Rx Error event
133133
*/
134134
void OnRxError(void)
135135
{
136136
Serial.println("OnRxError");
137-
Radio.Rx(RX_TIMEOUT_VALUE);
137+
Radio.Rx(0);
138138
}

0 commit comments

Comments
 (0)