summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'error_utils.c')
-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;
+ }
}
}