File tree Expand file tree Collapse file tree 4 files changed +28
-22
lines changed Expand file tree Collapse file tree 4 files changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -865,7 +865,7 @@ void SX1272_LoRaRadio::transmit(uint32_t timeout)
865
865
* and finally a DIO0 interrupt let's the state machine know that a packet is
866
866
* ready to be read from the FIFO
867
867
*/
868
- void SX1272_LoRaRadio::receive (uint32_t )
868
+ void SX1272_LoRaRadio::receive (void )
869
869
{
870
870
switch (_rf_settings.modem ) {
871
871
case MODEM_FSK:
Original file line number Diff line number Diff line change @@ -192,18 +192,21 @@ class SX1272_LoRaRadio: public LoRaRadio {
192
192
virtual void send (uint8_t *buffer, uint8_t size);
193
193
194
194
/* *
195
- * Sets the radio in reception mode for the given time
196
- *
197
- * It should be noted that if the timeout is set to 0, it essentially
198
- * puts the receiver in continuous mode and hence from thereon it should
199
- * be treated as if in continuous mode. However, an appropriate way of
200
- * setting the receiver in continuous mode is by using set_rx_config()
201
- * API.
202
- *
203
- * @param timeout Reception timeout [ms]
195
+ * For backwards compatibility
196
+ */
197
+ virtual void receive (uint32_t timeout)
198
+ {
199
+ (void ) timeout;
200
+ receive ();
201
+ }
202
+
203
+ /* *
204
+ * Sets the radio to receive
204
205
*
206
+ * All necessary configuration options for receptions are set in
207
+ * 'set_rx_config(parameters)' API.
205
208
*/
206
- virtual void receive (uint32_t /* *timeout* */ );
209
+ virtual void receive (void );
207
210
208
211
/* *
209
212
* Sets the carrier frequency
Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ void SX1276_LoRaRadio::standby( void )
844
844
* and finally a DIO0 interrupt let's the state machine know that a packet is
845
845
* ready to be read from the FIFO
846
846
*/
847
- void SX1276_LoRaRadio::receive (uint32_t )
847
+ void SX1276_LoRaRadio::receive (void )
848
848
{
849
849
switch (_rf_settings.modem ) {
850
850
case MODEM_FSK:
Original file line number Diff line number Diff line change @@ -207,18 +207,21 @@ class SX1276_LoRaRadio: public LoRaRadio {
207
207
virtual void send (uint8_t *buffer, uint8_t size);
208
208
209
209
/* *
210
- * Sets the radio in reception mode for the given time
211
- *
212
- * It should be noted that if the timeout is set to 0, it essentially
213
- * puts the receiver in continuous mode and hence from thereon it should
214
- * be treated as if in continuous mode. However, an appropriate way of
215
- * setting the receiver in continuous mode is by using set_rx_config()
216
- * API.
217
- *
218
- * @param timeout Reception timeout [ms]
210
+ * For backwards compatibility
211
+ */
212
+ virtual void receive (uint32_t timeout)
213
+ {
214
+ (void ) timeout;
215
+ receive ();
216
+ }
217
+
218
+ /* *
219
+ * Sets the radio to receive
219
220
*
221
+ * All necessary configuration options for reception are set in
222
+ * 'set_rx_config(parameters)' API.
220
223
*/
221
- virtual void receive (uint32_t /* *timeout* */ );
224
+ virtual void receive (void );
222
225
223
226
/* *
224
227
* Sets the carrier frequency
You can’t perform that action at this time.
0 commit comments