Skip to content

Commit

Permalink
drivers/sx126x: fix wrong return value in recv function
Browse files Browse the repository at this point in the history
  • Loading branch information
jia200x committed Jun 22, 2021
1 parent d494160 commit 951822c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sx126x/sx126x_netdev.c
Expand Up @@ -108,7 +108,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)

sx126x_read_buffer(dev, rx_buffer_status.buffer_start_pointer, buf, size);

return 0;
return size;
}

static int _init(netdev_t *netdev)
Expand Down

0 comments on commit 951822c

Please sign in to comment.