From ba41fdbc61e6cc11e9ae1fd3788d5599cb529700 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 19 Aug 2024 13:22:51 +0800 Subject: [PATCH] --- reduce sleep time for RSS scan --- .project | 11 +++++++++++ Core/Src/yunhorn_sts_presence_rss.c | 7 ++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .project diff --git a/.project b/.project new file mode 100644 index 0000000..0be5481 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + STS_O7 + + + + + + + + diff --git a/Core/Src/yunhorn_sts_presence_rss.c b/Core/Src/yunhorn_sts_presence_rss.c index 9850fc6..7bb3b86 100644 --- a/Core/Src/yunhorn_sts_presence_rss.c +++ b/Core/Src/yunhorn_sts_presence_rss.c @@ -544,9 +544,10 @@ int sts_presence_rss_fall_rise_detection(void) } } - - acc_integration_sleep_ms(1000 / DEFAULT_UPDATE_RATE_PRESENCE); // 15 ms, DEFAULT_UPDATE_RATE); - //acc_integration_sleep_ms(1); + // ~12 ms per RSS scan + // acc_integration_sleep_ms(1000 / DEFAULT_UPDATE_RATE_PRESENCE); // 15 ms, DEFAULT_UPDATE_RATE); + //acc_integration_sleep_ms(10); --- around 1500 ms in total + acc_integration_sleep_ms(2); //--- around 1000ms in total } deactivated = acc_detector_presence_deactivate(handle); acc_detector_presence_destroy(&handle);