From 114716c830cd466b9c3fd7ff02f794759e4f76c8 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 28 Mar 2023 16:44:41 -0700 Subject: [PATCH] rename var to prevent collision --- stm32/f103c8t6/stm32f1xx_hal_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stm32/f103c8t6/stm32f1xx_hal_uart.c b/stm32/f103c8t6/stm32f1xx_hal_uart.c index 67de556..06fbd4d 100644 --- a/stm32/f103c8t6/stm32f1xx_hal_uart.c +++ b/stm32/f103c8t6/stm32f1xx_hal_uart.c @@ -686,7 +686,7 @@ HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Add return HAL_OK; } -volatile uint32_t v; +volatile uint32_t _checkinter_count; static void checkinter(UART_HandleTypeDef *huart) @@ -694,7 +694,7 @@ checkinter(UART_HandleTypeDef *huart) #if 1 if (huart->ReceptionType == 0 && huart->Instance->CR1 & 0x10) { - for(;;v++); + for(;;_checkinter_count++); } #endif }