From 7f16cbd9cf662fad65a37831004a8f51543a1af0 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 6 May 2024 12:50:13 +0800 Subject: [PATCH] add debug info print --- Core/Src/yunhorn_sts_presence_rss.c | 6 +++--- STM32CubeIDE/Release/STS_O7.bin | Bin 253792 -> 253792 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Src/yunhorn_sts_presence_rss.c b/Core/Src/yunhorn_sts_presence_rss.c index e7df36d..eb73ed7 100644 --- a/Core/Src/yunhorn_sts_presence_rss.c +++ b/Core/Src/yunhorn_sts_presence_rss.c @@ -399,7 +399,7 @@ int sts_presence_rss_fall_rise_detection(void) } acc_detector_presence_deactivate(handle); - APP_LOG(TS_OFF, VLEVEL_H,"First Half Presence Detection, Motion Count = %u \r\n", (int)motion_count); + APP_LOG(TS_OFF, VLEVEL_L,"First Half Presence Detection, Motion Count = %u \r\n", (int)motion_count); // ******** Second Half detection of fall down and rise up @@ -457,7 +457,7 @@ int sts_presence_rss_fall_rise_detection(void) acc_integration_sleep_ms(1000 / DEFAULT_UPDATE_RATE_PRESENCE); // DEFAULT_UPDATE_RATE); } - APP_LOG(TS_OFF, VLEVEL_H,"Second Half, Fall Rise Detection, Motion Count = %u \r\n", (int)motion_count); + APP_LOG(TS_OFF, VLEVEL_L,"Second Half, Fall Rise Detection, Motion Count = %u \r\n", (int)motion_count); sts_rss_result = (average_result > 3)? 1: 0; average_distance = (1000.0f*average_distance)/average_result; // in meters @@ -466,7 +466,7 @@ int sts_presence_rss_fall_rise_detection(void) sts_presence_rss_score = average_score; if (average_score !=0) //if (sts_rss_result) { - APP_LOG(TS_OFF, VLEVEL_H,"\r\n######## Motion: %u Distance=%u mm, Score=%u Average_result=%u out of %u \r\n", + APP_LOG(TS_OFF, VLEVEL_L,"\r\n######## Motion: %u Distance=%u mm, Score=%u Average_result=%u out of %u \r\n", (uint8_t)sts_rss_result,(int) average_distance, (int)(average_score), (int)average_result, (int)iterations); } diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin index 1b1ec563d92410ca3c547ebd703fdeb9dd683bb3..5e0b9da3df420cd3f97085d856aa9ab04aae2283 100644 GIT binary patch delta 41 wcmaE`kN?3w{tYGmjEtL0{g*Q`GESBaEN5hFo*LLbHINaAnYK?2WIo*s08*h3sQ>@~ delta 41 wcmaE`kN?3w{tYGmjLe%${g*Q`GEbHbEN5hHo*LLbHINaAnYK?2WIo*s08=v$uK)l5