diff --git a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c index 480de0c..784b83d 100644 --- a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c +++ b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c @@ -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) {