diff options
author | danicampora <danicampora@gmail.com> | 2015-02-23 11:33:06 +0100 |
---|---|---|
committer | danicampora <danicampora@gmail.com> | 2015-02-23 15:02:55 +0100 |
commit | 379a3fa305fd8b032d4232a518d96649439743b4 (patch) | |
tree | 8c8678b8f2a12c762527cb7fc5eddfed727412bc | |
parent | 88b7f52ebbb9d7614f402dc4cc97bee2638f84d8 (diff) | |
download | micropython-379a3fa305fd8b032d4232a518d96649439743b4.tar.gz micropython-379a3fa305fd8b032d4232a518d96649439743b4.zip |
cc3200: Change UART.print() to make it consistent with the rest.
-rw-r--r-- | cc3200/mods/pybuart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc3200/mods/pybuart.c b/cc3200/mods/pybuart.c index d113afe398..b5593b50cb 100644 --- a/cc3200/mods/pybuart.c +++ b/cc3200/mods/pybuart.c @@ -322,9 +322,9 @@ STATIC void UART1IntHandler(void) { STATIC void pyb_uart_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { pyb_uart_obj_t *self = self_in; if (!self->enabled) { - print(env, "UART(%u)", self->uart_id); + print(env, "<UART%u>", self->uart_id); } else { - print(env, "UART(%u, baudrate=%u, bits=", self->uart_id, self->baudrate); + print(env, "<UART%u baudrate=%u, bits=", self->uart_id, self->baudrate); switch (self->config & UART_CONFIG_WLEN_MASK) { case UART_CONFIG_WLEN_5: print(env, "5"); @@ -346,7 +346,7 @@ STATIC void pyb_uart_print(void (*print)(void *env, const char *fmt, ...), void } else { print(env, ", parity=%u", (self->config & UART_CONFIG_PAR_MASK) == UART_CONFIG_PAR_EVEN ? 0 : 1); } - print(env, ", stop=%u, timeout=%u, timeout_char=%u, read_buf_len=%u)", + print(env, ", stop=%u, timeout=%u, timeout_char=%u, read_buf_len=%u>", (self->config & UART_CONFIG_STOP_MASK) == UART_CONFIG_STOP_ONE ? 1 : 2, self->timeout, self->timeout_char, self->read_buf_len); } |