diff --git a/Core/Inc/yunhorn_sts_prd_conf.h b/Core/Inc/yunhorn_sts_prd_conf.h
index 95fe2b0..59d9f7d 100644
--- a/Core/Inc/yunhorn_sts_prd_conf.h
+++ b/Core/Inc/yunhorn_sts_prd_conf.h
@@ -210,7 +210,7 @@
#ifdef YUNHORN_STS_O7_ENABLED
#define MajorVer 24U
#define MinorVer 05U
-#define SubMinorVer 12U
+#define SubMinorVer 14U
#define FirmwareVersion 3U
#define YUNHORN_STS_MAX_NVM_CFG_SIZE 64U
diff --git a/Core/Src/yunhorn_sts_presence_rss.c b/Core/Src/yunhorn_sts_presence_rss.c
index 10c6f9e..31d553a 100644
--- a/Core/Src/yunhorn_sts_presence_rss.c
+++ b/Core/Src/yunhorn_sts_presence_rss.c
@@ -409,7 +409,7 @@ int sts_presence_rss_fall_rise_detection(void)
APP_LOG(TS_OFF, VLEVEL_H,"First Half Presence Detection, Motion Count = %u \r\n", (int)motion_count);
#endif
// ******** Second Half detection of fall down and rise up
-
+ if (sts_presence_fall_detection == 1) {
set_default_fall_rise_configuration(presence_configuration);
if (!acc_detector_presence_reconfigure(&handle, presence_configuration))
@@ -428,6 +428,7 @@ int sts_presence_rss_fall_rise_detection(void)
return false;
}
acc_detector_presence_configuration_destroy(&presence_configuration);
+ }
// set to full lenght of iteration
for (int i = 0; i < (iterations/2); i++)
{
diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject
index 1bc22b8..2c6edf5 100644
--- a/STM32CubeIDE/.cproject
+++ b/STM32CubeIDE/.cproject
@@ -153,6 +153,7 @@