@@ -297,7 +297,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
297
297
HAL_NVIC_SetPriority (self -> irq , UART_IRQPRI , UART_IRQSUB_PRI );
298
298
HAL_NVIC_EnableIRQ (self -> irq );
299
299
300
- mp_printf (& mp_plat_print , "Started and inited\n" );
300
+ // mp_printf(&mp_plat_print, "Started and inited\n");
301
301
iflag = 0 ;
302
302
errflag = 0 ;
303
303
rxflag = 0 ;
@@ -309,7 +309,7 @@ bool common_hal_busio_uart_deinited(busio_uart_obj_t *self) {
309
309
}
310
310
311
311
void common_hal_busio_uart_deinit (busio_uart_obj_t * self ) {
312
- mp_printf (& mp_plat_print , "De-init UART\n" );
312
+ // mp_printf(&mp_plat_print, "De-init UART\n");
313
313
reset_pin_number (self -> tx -> pin -> port ,self -> tx -> pin -> number );
314
314
reset_pin_number (self -> rx -> pin -> port ,self -> rx -> pin -> number );
315
315
self -> tx = mp_const_none ;
@@ -377,7 +377,7 @@ size_t common_hal_busio_uart_write(busio_uart_obj_t *self, const uint8_t *data,
377
377
} else {
378
378
mp_raise_ValueError (translate ("UART write error" ));
379
379
}
380
- mp_printf (& mp_plat_print , "Send\n" );
380
+ // mp_printf(&mp_plat_print, "Send\n");
381
381
return 0 ;
382
382
}
383
383
@@ -448,7 +448,7 @@ uint32_t common_hal_busio_uart_rx_characters_available(busio_uart_obj_t *self) {
448
448
}
449
449
450
450
void common_hal_busio_uart_clear_rx_buffer (busio_uart_obj_t * self ) {
451
- mp_printf (& mp_plat_print , "Clear RX Buffer\n" );
451
+ // mp_printf(&mp_plat_print, "Clear RX Buffer\n");
452
452
// Halt reception
453
453
HAL_NVIC_DisableIRQ (self -> irq );
454
454
ringbuf_clear (& self -> rbuf );
0 commit comments