diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:35:22 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:35:22 +0900 |
commit | 6dd6772dc72dde0e1412ace800931c1117eadbba (patch) | |
tree | 45f73ad161570a422cef1e6dd22d4487a4b24efb /device-functions.c | |
parent | 8347c2fdacd9868c793bdc1bc9a2ac5c9ffc166e (diff) |
added ability to increase output-on delay
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 3 |
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 { |