add lamp bar occupy vacant color config
This commit is contained in:
parent
5f2c9e6a4a
commit
1629badd85
|
@ -659,9 +659,9 @@ void STS_TOF_VL53LX_PresenceDetection_Process_Start(void)
|
||||||
status = sts_tof_vl53lx_presence_detection_start();
|
status = sts_tof_vl53lx_presence_detection_start();
|
||||||
if (sts_tof_presence_state ==1)
|
if (sts_tof_presence_state ==1)
|
||||||
{
|
{
|
||||||
sts_lamp_bar_color = STS_RED;
|
sts_lamp_bar_color = (sts_cfg_nvm.color_occupy_vacant>>4)&0x0f; //STS_RED;
|
||||||
} else if (sts_tof_presence_state ==0) {
|
} else if (sts_tof_presence_state ==0) {
|
||||||
sts_lamp_bar_color = STS_GREEN;
|
sts_lamp_bar_color = (sts_cfg_nvm.color_occupy_vacant)&0x0f; //STS_GREEN;
|
||||||
}
|
}
|
||||||
sts_people_count_sensor_data.Count_Valid = (status ==0)? 1:0;
|
sts_people_count_sensor_data.Count_Valid = (status ==0)? 1:0;
|
||||||
//APP_LOG(TS_OFF, VLEVEL_M,"############### SUB-PROCESS running .... \r\n");
|
//APP_LOG(TS_OFF, VLEVEL_M,"############### SUB-PROCESS running .... \r\n");
|
||||||
|
|
Loading…
Reference in New Issue