summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:20:23 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:20:23 +0900
commit8722d53003e7f18b916e5b8bbd3e527fd1097ca4 (patch)
tree4796db74e4b89379e9cb94ff2336e7e5efb97f0e /error_utils.c
parent2c73bb707c28fac0f6b1f2725b71e0e4ece92e49 (diff)
separate minimum equiv offset from ampl, for AVIR-4-B-OT
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/error_utils.c b/error_utils.c
index f146129..5a2a14f 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -770,6 +770,14 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
report_error = zero_equiv_ampl_negative;
}
+ if (fabs(globals.Flash.os_zero_equiv[i] > 2000.0)) {
+ report_error = zero_equiv_ampl_too_large;
+ }
+
+ if (globals.Flash.os_zero_equiv[i] < 0.0) {
+ report_error = zero_equiv_ampl_negative;
+ }
+
/* calculate maximum duty cycle based on amplitude and load, for later use */
max_duty_high_ampl=globals.Flash.max_duty_high[i];