fix: 有车时根据 hold_time 启用有限存在计时
vd1_task_per_channel 判定有车 (loop_VD_FLAG=1) 时, 若 hold_time > 0 则设置 loop_VD_HOLD = 1, 使有限存在超时逻辑能够实际生效。 hold_time=0 (exist_mode=0) 时不设 VD_HOLD,保持无限制存在。
This commit is contained in:
@@ -469,6 +469,9 @@ void vd1_task_per_channel(Loop154_Unit *unit)
|
||||
|
||||
unit->loop_VD_FLAG = 1;
|
||||
unit->loop_FLAG_IN = 1;
|
||||
if (unit->hold_time > 0) {
|
||||
unit->loop_VD_HOLD = 1;
|
||||
}
|
||||
at32_led_on(unit->loop_num);
|
||||
|
||||
if (!unit->SET_SAFE) {
|
||||
|
||||
Reference in New Issue
Block a user