aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/mphalport.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/mphalport.c')
-rw-r--r--ports/stm32/mphalport.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ports/stm32/mphalport.c b/ports/stm32/mphalport.c
index c8d83be0a..0e40911ed 100644
--- a/ports/stm32/mphalport.c
+++ b/ports/stm32/mphalport.c
@@ -33,15 +33,15 @@ MP_WEAK uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags) {
MP_WEAK int mp_hal_stdin_rx_chr(void) {
for (;;) {
-#if 0
-#ifdef USE_HOST_MODE
+ #if 0
+ #ifdef USE_HOST_MODE
pyb_usb_host_process();
int c = pyb_usb_host_get_keyboard();
if (c != 0) {
return c;
}
-#endif
-#endif
+ #endif
+ #endif
if (MP_STATE_PORT(pyb_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(pyb_stdio_uart))) {
return uart_rx_char(MP_STATE_PORT(pyb_stdio_uart));
}
@@ -61,9 +61,9 @@ MP_WEAK void mp_hal_stdout_tx_strn(const char *str, size_t len) {
if (MP_STATE_PORT(pyb_stdio_uart) != NULL) {
uart_tx_strn(MP_STATE_PORT(pyb_stdio_uart), str, len);
}
-#if 0 && defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD
+ #if 0 && defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD
lcd_print_strn(str, len);
-#endif
+ #endif
mp_uos_dupterm_tx_strn(str, len);
}