bad 2
This commit is contained in:
parent
fd01fa32ec
commit
9c0442facd
Binary file not shown.
|
@ -644,30 +644,37 @@ void USER_APP_Parse_CMD_P(uint8_t *parse_buffer, uint8_t parse_buffer_size)
|
||||||
switch (sts_fhmos_cfg_index) {
|
switch (sts_fhmos_cfg_index) {
|
||||||
case 1: // head level height threshold
|
case 1: // head level height threshold
|
||||||
sts_fhmos_cfg.sts_head_level_height_threshold_cm = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_head_level_height_threshold_cm = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_1 = sts_fhmos_cfg.sts_head_level_height_threshold_cm;
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
sts_fhmos_cfg.sts_fall_duration_threshold_potential_15sec = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_fall_duration_threshold_potential_15sec = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_2 =sts_fhmos_cfg.sts_fall_duration_threshold_potential_15sec;
|
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
sts_fhmos_cfg.sts_fall_duration_threshold_confirm_15sec = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_fall_duration_threshold_confirm_15sec = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_3 = sts_fhmos_cfg.sts_fall_duration_threshold_confirm_15sec;
|
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
sts_fhmos_cfg.sts_motionless_threshold_short_15sec = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_motionless_threshold_short_15sec = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_4 = sts_fhmos_cfg.sts_motionless_threshold_short_15sec;
|
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
sts_fhmos_cfg.sts_motionless_threshold_long_15sec = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_motionless_threshold_long_15sec = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_5 = sts_fhmos_cfg.sts_motionless_threshold_long_15sec;
|
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
sts_fhmos_cfg.sts_occupancy_threshold_overstay_15sec = sts_fhmos_cfg_value;
|
sts_fhmos_cfg.sts_occupancy_threshold_overstay_15sec = sts_fhmos_cfg_value;
|
||||||
sts_cfg_nvm.fhmos_cfg_6 = sts_fhmos_cfg.sts_occupancy_threshold_overstay_15sec;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
sts_cfg_nvm.fhmos_cfg_1 = sts_fhmos_cfg.sts_head_level_height_threshold_cm;
|
||||||
|
sts_cfg_nvm.fhmos_cfg_2 = sts_fhmos_cfg.sts_fall_duration_threshold_potential_15sec;
|
||||||
|
sts_cfg_nvm.fhmos_cfg_3 = sts_fhmos_cfg.sts_fall_duration_threshold_confirm_15sec;
|
||||||
|
sts_cfg_nvm.fhmos_cfg_4 = sts_fhmos_cfg.sts_motionless_threshold_short_15sec;
|
||||||
|
sts_cfg_nvm.fhmos_cfg_5 = sts_fhmos_cfg.sts_motionless_threshold_long_15sec;
|
||||||
|
sts_cfg_nvm.fhmos_cfg_6 = sts_fhmos_cfg.sts_occupancy_threshold_overstay_15sec;
|
||||||
|
*/
|
||||||
|
|
||||||
OnStoreSTSCFGContextRequest();
|
OnStoreSTSCFGContextRequest();
|
||||||
// 2024-11-18
|
// 2024-11-18
|
||||||
|
|
Loading…
Reference in New Issue