for uni_mode only --change fall threshold

This commit is contained in:
Yunhorn 2024-06-13 12:35:39 +08:00
parent 697dae2349
commit 890d31711f
1 changed files with 5 additions and 2 deletions

View File

@ -2102,9 +2102,12 @@ void USER_APP_AUTO_RESPONDER_Parse(char *tlv_buf, size_t tlv_buf_size)
sts_cfg_nvm.unconcious_threshold = (uint8_t)(tlv_buf[CFG_CMD7] - 0x30+1);
sts_cfg_nvm.occupancy_overtime_threshold = (uint8_t)(tlv_buf[CFG_CMD8] - 0x30);
if ((sts_fall_detection_acc_threshold ==0)&&(sts_fall_detection_depth_threshold==0))
if (sts_work_mode == STS_UNI_MODE) // fall detection threshold only effective in Uni_mode
{
sts_presence_fall_detection = 0;
if ((sts_fall_detection_acc_threshold ==0)&&(sts_fall_detection_depth_threshold==0))
{
sts_presence_fall_detection = 0;
}
}
OnStoreSTSCFGContextRequest();