diff --git a/Core/Src/yunhorn_sts_presence_rss.c b/Core/Src/yunhorn_sts_presence_rss.c index a2d0942..a4c61ce 100644 --- a/Core/Src/yunhorn_sts_presence_rss.c +++ b/Core/Src/yunhorn_sts_presence_rss.c @@ -581,7 +581,7 @@ int sts_presence_rss_fall_rise_detection(void) acc_rss_override_sensor_id_check_at_creation(true); //+++++++++++++++++++++++++++++++++++ - +#if 0 acc_detector_distance_configuration_t distance_configuration = acc_detector_distance_configuration_create(); if (distance_configuration == NULL) @@ -621,6 +621,7 @@ int sts_presence_rss_fall_rise_detection(void) acc_rss_deactivate(); return EXIT_FAILURE; } +#endif #endif //+++++++++++++++++++++++++++++++++++ @@ -782,10 +783,10 @@ int sts_presence_rss_fall_rise_detection(void) } deactivated = acc_detector_presence_deactivate(handle); - // acc_detector_presence_destroy(&handle); + acc_detector_presence_destroy(&handle); // ++++++++++++++++++++++++++++++++++++++ - +#if 0 if (!acc_detector_distance_activate(distance_handle)) { @@ -843,7 +844,7 @@ int sts_presence_rss_fall_rise_detection(void) acc_detector_distance_destroy(&distance_handle); - +#endif // ++++++++++++++++++++++++++++++++++++++ diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin index 35becba..702df23 100644 Binary files a/STM32CubeIDE/Release/STS_O7.bin and b/STM32CubeIDE/Release/STS_O7.bin differ