1
0
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:
Alexandre Abadie 2019-03-08 18:20:34 +01:00
parent 2fd59067b4
commit d3de1d7aec
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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);