mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/semtech-loramac: reduce scope of radio_payload and make CI happy
This commit is contained in:
parent
4d5812eded
commit
a82318d4ec
@ -540,9 +540,9 @@ static void _semtech_loramac_event_cb(netdev_t *dev, netdev_event_t event)
|
||||
case NETDEV_EVENT_RX_COMPLETE:
|
||||
{
|
||||
int len;
|
||||
uint8_t radio_payload[SX127X_RX_BUFFER_SIZE];
|
||||
len = dev->driver->recv(dev, NULL, 0, 0);
|
||||
if (len > 0) {
|
||||
uint8_t radio_payload[SX127X_RX_BUFFER_SIZE];
|
||||
dev->driver->recv(dev, radio_payload, len, &packet_info);
|
||||
semtech_loramac_radio_events.RxDone(radio_payload,
|
||||
len, packet_info.rssi,
|
||||
|
Loading…
Reference in New Issue
Block a user