aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2024-11-08 10:12:12 +1100
committerGitHub <[email protected]>2024-11-08 10:12:12 +1100
commit21ecc154f8650202492696959d66849a2f180ecb (patch)
tree95bc5218bac144a4432d6d097ee3964bce7e765d /source
parenta0a779fabacc9bb488745de94ad68d5d5415115f (diff)
downloadIronOS-21ecc154f8650202492696959d66849a2f180ecb.tar.gz
IronOS-21ecc154f8650202492696959d66849a2f180ecb.zip
Change Input mode of the tip sense signal for Miniware (#1990)
Diffstat (limited to 'source')
-rw-r--r--source/Core/BSP/MHP30/stm32f1xx_hal_msp.c2
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;