Skip to content
Snippets Groups Projects
Unverified Commit 85071318 authored by Leandro Lanzieri's avatar Leandro Lanzieri Committed by GitHub
Browse files

Merge pull request #9740 from jcarrano/at_driver-fix-cast

drivers/at: fix invalid function pointer cast.
parents 2fc5ad6b 53de5206
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,16 @@
#define AT_PRINT_INCOMING (0)
#endif
static void _isrpipe_write_one_wrapper(void *_isrpipe, uint8_t data)
{
isrpipe_write_one(_isrpipe, (char)data);
}
int at_dev_init(at_dev_t *dev, uart_t uart, uint32_t baudrate, char *buf, size_t bufsize)
{
dev->uart = uart;
isrpipe_init(&dev->isrpipe, buf, bufsize);
uart_init(uart, baudrate, (uart_rx_cb_t) isrpipe_write_one,
uart_init(uart, baudrate, _isrpipe_write_one_wrapper,
&dev->isrpipe);
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment