summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:09:41 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:09:41 -0500
commit7cc5141358bb059e17dc304e9db36ac7f5897672 (patch)
tree5c88d7606a7dc80d20c35966b6c894f1d78d1608
parent5def502d381ef472859c38f4e399419661b7fbe0 (diff)
Permit negative delays on CH1 of dual-delay units, for -KMPD
-rw-r--r--error_utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/error_utils.c b/error_utils.c
index eb5d337..5515181 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -961,9 +961,11 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
/* otherwise, assume delay has equal +/- range */
globals.Constraints.err_min_delay[i]=-globals.Flash.max_delay[i];
- /* for dual-delay units, positive delay only */
+ /* for dual-delay units, positive delay only for second channel */
if ((globals.Flash.ChanKey_delay?globals.Flash.channels:1)>1) {
- globals.Constraints.err_min_delay[i]=0.0;
+ if (i>0) {
+ globals.Constraints.err_min_delay[i]=0.0;
+ }
}
}