diff --git a/Core/Src/yunhorn_sts_presence_rss.c b/Core/Src/yunhorn_sts_presence_rss.c index d1c5058..9786b44 100644 --- a/Core/Src/yunhorn_sts_presence_rss.c +++ b/Core/Src/yunhorn_sts_presence_rss.c @@ -466,7 +466,7 @@ int sts_presence_rss_fall_rise_detection(void) sts_presence_rss_score = average_score; if (sts_rss_result) //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/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c index 5fc745a..ad11a7b 100644 --- a/Core/Src/yunhorn_sts_process.c +++ b/Core/Src/yunhorn_sts_process.c @@ -106,6 +106,12 @@ extern volatile uint8_t last_sts_rss_result; //extern volatile uint8_t last_sts_reed_hall_result; extern volatile uint8_t last_lamp_bar_color; extern volatile float sts_presence_rss_distance; +char sts_presence_fall_detection_message[5][20]={ + "State_Normal", + "State_Fall_Down", + "State_Rising_Up", + "State_Laydown", +}; #endif @@ -590,8 +596,8 @@ void STS_FallDetection_LampBarProcess(void) break; } - APP_LOG(TS_OFF, VLEVEL_L, "\r\n <<<<<<<<<<<<<< Fall Rise state=%d, send buf size = %d \r\n", - sts_fall_rising_detected_result, i ) + APP_LOG(TS_OFF, VLEVEL_L, "\r\n <<<<<<<<<<<<<< Fall Rise state=%d, send buf size = %25s \r\n", + sts_presence_fall_detection_message[sts_fall_rising_detected_result], i ) STS_SENSOR_Upload_Message((LORAWAN_USER_APP_PORT+2), i, buf); diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin index 331a813..c65943e 100644 Binary files a/STM32CubeIDE/Release/STS_O7.bin and b/STM32CubeIDE/Release/STS_O7.bin differ