summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
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];