Skip to content

Commit

Permalink
netdev_driver: disable continuous RX
Browse files Browse the repository at this point in the history
  • Loading branch information
pnunes30 authored and Matthieu Saignemorte committed Jan 8, 2020
1 parent 939cdf9 commit 996614e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack/framework/hal/chips/netdev_driver/sx127x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ void _on_dio1_irq(void *arg)
timer_cancel_event(&dev->_internal.rx_timeout_timer);

uint8_t byte = 0;
if (!(dev->options & SX127X_OPT_TELL_RX_END))
/* if (!(dev->options & SX127X_OPT_TELL_RX_END))
{
while(!sx127x_is_fifo_empty(dev))
{
Expand All @@ -997,7 +997,7 @@ void _on_dio1_irq(void *arg)
hw_gpio_set_edge_interrupt(dev->params.dio1_pin, GPIO_RISING_EDGE);
hw_gpio_enable_interrupt(dev->params.dio1_pin);
return;
}
}*/

if (dev->packet.length == 0 && dev->packet.pos == 0)
{
Expand Down

0 comments on commit 996614e

Please sign in to comment.