diff options
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r-- | stmhal/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c index b353f5d9e3..3745451636 100644 --- a/stmhal/uart.c +++ b/stmhal/uart.c @@ -115,7 +115,7 @@ void uart_deinit(void) { STATIC bool uart_init2(pyb_uart_obj_t *uart_obj) { USART_TypeDef *UARTx; IRQn_Type irqn; - uint32_t GPIO_Pin, GPIO_Pin2; + uint32_t GPIO_Pin, GPIO_Pin2 = 0; uint8_t GPIO_AF_UARTx = 0; GPIO_TypeDef* GPIO_Port = NULL; GPIO_TypeDef* GPIO_Port2 = NULL; |