mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
tests/driver_sx127x: use netdev_lora_rx_info structure for RX info
This commit is contained in:
parent
2fd59067b4
commit
d3de1d7aec
@ -32,6 +32,7 @@
|
||||
#include "shell_commands.h"
|
||||
|
||||
#include "net/netdev.h"
|
||||
#include "net/netdev/lora.h"
|
||||
#include "net/lora.h"
|
||||
|
||||
#include "board.h"
|
||||
@ -324,7 +325,7 @@ static void _event_cb(netdev_t *dev, netdev_event_t event)
|
||||
}
|
||||
else {
|
||||
size_t len;
|
||||
netdev_sx127x_lora_packet_info_t packet_info;
|
||||
netdev_lora_rx_info_t packet_info;
|
||||
switch (event) {
|
||||
case NETDEV_EVENT_RX_COMPLETE:
|
||||
len = dev->driver->recv(dev, NULL, 0, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user