Skip to content
Snippets Groups Projects
Commit c4b1fa6e authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

pkg/semtech-loramac: adapt to iolist netdev

parent da67e3a8
No related branches found
No related tags found
No related merge requests found
...@@ -136,10 +136,11 @@ uint32_t SX127XGetTimeOnAir(RadioModems_t modem, uint8_t pktLen) ...@@ -136,10 +136,11 @@ uint32_t SX127XGetTimeOnAir(RadioModems_t modem, uint8_t pktLen)
void SX127XSend(uint8_t *buffer, uint8_t size) void SX127XSend(uint8_t *buffer, uint8_t size)
{ {
netdev_t *dev = (netdev_t *)&sx127x; netdev_t *dev = (netdev_t *)&sx127x;
struct iovec vec[1]; iolist_t iol = {
vec[0].iov_base = buffer; .iol_base = buffer,
vec[0].iov_len = size; .iol_len = size
dev->driver->send(dev, vec, 1); };
dev->driver->send(dev, &iol);
} }
void SX127XSetSleep(void) void SX127XSetSleep(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment