Skip to content

Commit beb053a

Browse files
committed
more thoroughly disable UART when
1 parent 7c9cd56 commit beb053a

File tree

1 file changed

+2
-0
lines changed
  • ports/atmel-samd/common-hal/busio

1 file changed

+2
-0
lines changed

ports/atmel-samd/common-hal/busio/UART.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27+
#if CIRCUITPY_BUSIO_UART
2728
#include "shared-bindings/microcontroller/__init__.h"
2829
#include "shared-bindings/microcontroller/Pin.h"
2930
#include "shared-bindings/busio/UART.h"
@@ -485,3 +486,4 @@ bool common_hal_busio_uart_ready_to_tx(busio_uart_obj_t *self) {
485486
usart_async_get_status(usart_desc_p, &async_status);
486487
return !(async_status.flags & USART_ASYNC_STATUS_BUSY);
487488
}
489+
#endif

0 commit comments

Comments
 (0)