From 236bd201ca0a31c8768d0236cc13bddf6cf58e9d Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 15 Mar 2016 14:24:48 +0100 Subject: [PATCH] sys/arduino: adapted to changed UART cb type --- sys/arduino/serialport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arduino/serialport.cpp b/sys/arduino/serialport.cpp index c9512be576..63ac0af947 100644 --- a/sys/arduino/serialport.cpp +++ b/sys/arduino/serialport.cpp @@ -27,10 +27,10 @@ extern "C" { #include "serialport.hpp" -void rx_cb(void *arg, char c) +void rx_cb(void *arg, uint8_t c) { ringbuffer_t *buf = (ringbuffer_t *)arg; - ringbuffer_add_one(buf, c); + ringbuffer_add_one(buf, (char)c); } SerialPort::SerialPort(uart_t dev)