diff --git a/Core/Src/gpio.c b/Core/Src/gpio.c
index 679c1cb..c24b8dc 100644
--- a/Core/Src/gpio.c
+++ b/Core/Src/gpio.c
@@ -83,7 +83,7 @@ void MX_GPIO_Init(void)
 #ifdef STS_O7
   GPIO_InitStruct.Pin = HALL1_Pin|HALL2_Pin;
   GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
-  GPIO_InitStruct.Pull = GPIO_NOPULL;
+  GPIO_InitStruct.Pull = GPIO_PULLUP;
   GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
   HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
 #else
diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin
index 70d4951..ba411ab 100644
Binary files a/STM32CubeIDE/Release/STS_O7.bin and b/STM32CubeIDE/Release/STS_O7.bin differ