From 70007e5ea484b8adaf59642794916c8ef1823e31 Mon Sep 17 00:00:00 2001 From: smlng Date: Thu, 29 Jun 2017 13:02:02 +0200 Subject: [PATCH] sys, uart_stdio: retain constness on cast --- sys/uart_stdio/uart_stdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/uart_stdio/uart_stdio.c b/sys/uart_stdio/uart_stdio.c index b87ccef2bc..0fc039790a 100644 --- a/sys/uart_stdio/uart_stdio.c +++ b/sys/uart_stdio/uart_stdio.c @@ -115,9 +115,9 @@ int uart_stdio_read(char* buffer, int count) int uart_stdio_write(const char* buffer, int len) { #ifndef USE_ETHOS_FOR_STDIO - uart_write(UART_STDIO_DEV, (uint8_t *)buffer, (size_t)len); + uart_write(UART_STDIO_DEV, (const uint8_t *)buffer, (size_t)len); #else - ethos_send_frame(ðos, (uint8_t*)buffer, len, ETHOS_FRAME_TYPE_TEXT); + ethos_send_frame(ðos, (const uint8_t *)buffer, len, ETHOS_FRAME_TYPE_TEXT); #endif return len; }