diff --git a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c index 5af1aaa..480de0c 100644 --- a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c +++ b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c @@ -300,6 +300,11 @@ void TMR15_GLOBAL_IRQHandler(void) unit->Hold_CNT = 0; if (unit->loop_VD_FLAG) { set_loops_relay_off(unit->loop_num); + unit->loop_VD_FLAG = 0; + unit->loop_FLAG_OUT = 1; + unit->LC_HOLD = 0; + unit->loop_ORG_CNT = 0; + unit->loop_ORG_SUM = 0; } } }