From 6dd6772dc72dde0e1412ace800931c1117eadbba Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:35:22 +0900 Subject: added ability to increase output-on delay --- device-functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'device-functions.c') 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 { -- cgit