diff --git a/Core/Inc/yunhorn_sts_prd_conf.h b/Core/Inc/yunhorn_sts_prd_conf.h
index 438c1b3..c4883b0 100644
--- a/Core/Inc/yunhorn_sts_prd_conf.h
+++ b/Core/Inc/yunhorn_sts_prd_conf.h
@@ -60,7 +60,9 @@
/*#define YUNHORN_STS_O10_ENABLED */
// #define YUNHORN_STS_O6_ENABLED
+#ifdef STS_O7
#define YUNHORN_STS_O7_ENABLED
+#endif
/** YUNHORN SMARTOILETS ENVIRONMENT PRODUCTS **/
/*#define YUNHORN_STS_E1_ENABLED */
/*#define YUNHORN_STS_E2_ENABLED */
diff --git a/Core/Src/tim.c b/Core/Src/tim.c
index 6132876..e672e78 100644
--- a/Core/Src/tim.c
+++ b/Core/Src/tim.c
@@ -165,7 +165,7 @@ void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle)
GPIO_InitStruct.Pin = GPIO_PIN_8;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
diff --git a/Core/Src/yunhorn_sts_presence_sensor.c b/Core/Src/yunhorn_sts_presence_sensor.c
index d6310ea..e46dbb6 100644
--- a/Core/Src/yunhorn_sts_presence_sensor.c
+++ b/Core/Src/yunhorn_sts_presence_sensor.c
@@ -463,7 +463,7 @@ uint8_t STS_SENSOR_MEMS_Get_ID(uint8_t *devID)
{
uint8_t scanned_id[2] = {0x0,0x0};
-#ifdef YUNHORN_STS_O6_ENABLED
+#ifdef YUNHORN_STS_O7_ENABLED
if (hal_test_spi_read_chipid(scanned_id))
{
devID[0] = scanned_id[0];
diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject
index 69c946f..813baa9 100644
--- a/STM32CubeIDE/.cproject
+++ b/STM32CubeIDE/.cproject
@@ -151,6 +151,7 @@