mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
sys, uart_stdio: retain constness on cast
This commit is contained in:
parent
725144896d
commit
70007e5ea4
@ -115,9 +115,9 @@ int uart_stdio_read(char* buffer, int count)
|
|||||||
int uart_stdio_write(const char* buffer, int len)
|
int uart_stdio_write(const char* buffer, int len)
|
||||||
{
|
{
|
||||||
#ifndef USE_ETHOS_FOR_STDIO
|
#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
|
#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
|
#endif
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user