summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index ccedec6..2565a02 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -1142,7 +1142,8 @@ int Set_Output_State(int channel,int mode)
bus_setpin(OUTPUT_RELAY, 1); /* turn output on */
bus_setpin(PW_ENABLE, 1); /* enable PW circuit */
- g_usleep (800e3); /* wait for extended-off circuit to work */
+ gulong sleep_us = get_float_with_min (globals.Flash.output_on_delay, DEFAULT_OUTPUT_ON_DELAY) * 1e6;
+ g_usleep (sleep_us); /* wait for extended-off circuit to work */
globals.Timers.last_activity_at[channel] = sec_timer();
} else {