diff --git a/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf b/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf index cfbb94a..6a2cac2 100644 Binary files a/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf and b/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf differ diff --git a/STS/TOF/App/app_tof_peoplecount.c b/STS/TOF/App/app_tof_peoplecount.c index 2b51115..ed59dac 100644 --- a/STS/TOF/App/app_tof_peoplecount.c +++ b/STS/TOF/App/app_tof_peoplecount.c @@ -825,7 +825,7 @@ int sts_tof_vl53lx_presence_detection_start(void) // 7 VL53L1_RANGESTATUS_WRAP_TARGET_ FAIL Wrapped target, not matching phases // 8 VL53L1_RANGESTATUS_PROCESSING_ FAIL Internal algorithm underflow or overflow // 14 VL53L1_RANGESTATUS_RANGE_INVALID The reported range is invalid -#if 0 +#if 1 if ((RangeStatus == 0) || (RangeStatus == 4) || (RangeStatus == 7)) { if (Distance <= ppc_cfg[sts_door_jam_profile].min_distance) //MIN_DISTANCE) // wraparound case see the explanation at the constants definition place Distance = ppc_cfg[sts_door_jam_profile].max_distance + ppc_cfg[sts_door_jam_profile].min_distance; //MAX_DISTANCE + MIN_DISTANCE; @@ -836,6 +836,7 @@ int sts_tof_vl53lx_presence_detection_start(void) #endif //if (Distance < ppc_cfg[sts_door_jam_profile].dist_threshold) +#if 1 if ((Distance < ppc_cfg[sts_door_jam_profile].dist_threshold) && ((Distance > ppc_cfg[sts_door_jam_profile].min_distance))) { PresenceState = 1; @@ -843,8 +844,9 @@ int sts_tof_vl53lx_presence_detection_start(void) } else { PresenceState = 0; } - //PresenceState = ProcessPresenceDetectionData(Distance, Zone, RangeStatus); - //printf("\nPresenceState =%d \n\r", PresenceState); +#endif + //uint8_t PresenceState2 = ProcessPresenceDetectionData(Distance, Zone, RangeStatus); + //printf("\nPresenceState2 =%d \n\r", PresenceState2); if (PresenceState == PrevPresenceState) { sts_tof_presence_state_changed = 0;