diff options
author | Ben V. Brown <[email protected]> | 2024-11-08 10:12:12 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-08 10:12:12 +1100 |
commit | 21ecc154f8650202492696959d66849a2f180ecb (patch) | |
tree | 95bc5218bac144a4432d6d097ee3964bce7e765d /source | |
parent | a0a779fabacc9bb488745de94ad68d5d5415115f (diff) | |
download | IronOS-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.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;
|