From e855d63d8425c1bb0d7ded75ee5fabd6ce1fb17b Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 15 Mar 2016 11:59:20 +0100 Subject: [PATCH] net/slip: adapted to uart cb type change --- sys/net/gnrc/link_layer/slip/gnrc_slip.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/net/gnrc/link_layer/slip/gnrc_slip.c b/sys/net/gnrc/link_layer/slip/gnrc_slip.c index ccf55d74f3..9ab6559339 100644 --- a/sys/net/gnrc/link_layer/slip/gnrc_slip.c +++ b/sys/net/gnrc/link_layer/slip/gnrc_slip.c @@ -50,9 +50,9 @@ #define _SLIP_DEV(arg) ((gnrc_slip_dev_t *)arg) /* UART callbacks */ -static void _slip_rx_cb(void *arg, char data) +static void _slip_rx_cb(void *arg, uint8_t data) { - if (data == _SLIP_END) { + if (data == (uint8_t)_SLIP_END) { msg_t msg; msg.type = _SLIP_MSG_TYPE; @@ -66,14 +66,14 @@ static void _slip_rx_cb(void *arg, char data) _SLIP_DEV(arg)->in_esc = 0; switch (data) { - case (_SLIP_END_ESC): + case ((uint8_t)_SLIP_END_ESC): if (ringbuffer_add_one(&_SLIP_DEV(arg)->in_buf, _SLIP_END) < 0) { _SLIP_DEV(arg)->in_bytes++; } break; - case (_SLIP_ESC_ESC): + case ((uint8_t)_SLIP_ESC_ESC): if (ringbuffer_add_one(&_SLIP_DEV(arg)->in_buf, _SLIP_ESC) < 0) { _SLIP_DEV(arg)->in_bytes++; } @@ -84,7 +84,7 @@ static void _slip_rx_cb(void *arg, char data) break; } } - else if (data == _SLIP_ESC) { + else if (data == (uint8_t)_SLIP_ESC) { _SLIP_DEV(arg)->in_esc = 1; } else {