From 364bb61df339c5012fb2d5c4f05af4c57347aa09 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 25 Nov 2015 09:24:36 -0800 Subject: stmhal: Allow make DEBUG=1 to build --- stmhal/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/uart.c') diff --git a/stmhal/uart.c b/stmhal/uart.c index b353f5d9e..374545163 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; -- cgit v1.2.3