Skip to content
Snippets Groups Projects
Commit c398b74a authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

cpu: native: uart: adapt to changed DEBUG

parent 4dba9ee6
No related branches found
No related tags found
No related merge requests found
......@@ -164,14 +164,14 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
{
DEBUG("writing to serial port ");
#if ENABLE_DEBUG
for (size_t i = 0; i < len; i++) {
DEBUG("%02x ", (unsigned char) data[i]);
}
for (size_t i = 0; i < len; i++) {
DEBUG("%c", (char) data[i]);
if (ENABLE_DEBUG) {
for (size_t i = 0; i < len; i++) {
DEBUG("%02x ", (unsigned char) data[i]);
}
for (size_t i = 0; i < len; i++) {
DEBUG("%c", (char) data[i]);
}
}
#endif
DEBUG("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment