for uni_mode only --change fall threshold
This commit is contained in:
parent
697dae2349
commit
890d31711f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue