1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/at: fix invalid function pointer cast.

This commit is contained in:
Juan Carrano 2018-08-08 13:28:11 +02:00
parent 6ed11de354
commit 53de520619

View File

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