diff options
author | Ben V. Brown <[email protected]> | 2024-11-07 20:52:22 +1100 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2024-11-07 20:52:22 +1100 |
commit | 578f0f88227520c2eaf3a5d2ae1c63a3bc6782bc (patch) | |
tree | 95bc5218bac144a4432d6d097ee3964bce7e765d | |
parent | a0a779fabacc9bb488745de94ad68d5d5415115f (diff) | |
download | IronOS-issue-1986.tar.gz IronOS-issue-1986.zip |
Update stm32f1xx_hal_msp.cissue-1986
-rw-r--r-- | source/Core/BSP/MHP30/stm32f1xx_hal_msp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Core/BSP/MHP30/stm32f1xx_hal_msp.c b/source/Core/BSP/MHP30/stm32f1xx_hal_msp.c index dcb5ebe8..0fdf25ca 100644 --- a/source/Core/BSP/MHP30/stm32f1xx_hal_msp.c +++ b/source/Core/BSP/MHP30/stm32f1xx_hal_msp.c @@ -60,7 +60,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) { GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
HAL_GPIO_Init(TIP_TEMP_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = TMP36_INPUT_Pin;
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
+ GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(TMP36_INPUT_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = VIN_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
|