diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-03-20 09:59:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-20 09:59:31 -0700 |
| commit | 0f90f3560632c734f18a46c9ecddb6c8f60ba41b (patch) | |
| tree | 1cb91f3d70e08ec72c0ace7a7bc1a3ce333f082f | |
| parent | 4e3748d0aec3c785cb967e5e1eef442ad4ebbc78 (diff) | |
| parent | dddfad6594d0e28497f82552a966729d270c7681 (diff) | |
Merge pull request #685 from jepler/uart-diagnostic
UART: Fix maybe-uninitialized diagnostic
| -rw-r--r-- | ports/atmel-samd/common-hal/busio/UART.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/atmel-samd/common-hal/busio/UART.c b/ports/atmel-samd/common-hal/busio/UART.c index 4cb7db203..537677520 100644 --- a/ports/atmel-samd/common-hal/busio/UART.c +++ b/ports/atmel-samd/common-hal/busio/UART.c @@ -56,7 +56,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self, uint8_t bits, uart_parity_t parity, uint8_t stop, uint32_t timeout, uint8_t receiver_buffer_size) { Sercom* sercom = NULL; - uint8_t sercom_index; + uint8_t sercom_index = 255; // Unset index uint32_t rx_pinmux = 0; uint8_t rx_pad = 255; // Unset pad uint32_t tx_pinmux = 0; |
