summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/error_utils.c b/error_utils.c
index 5edea83..ec5e351 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -881,7 +881,9 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
check_another_max_value (globals.Flash.max_freq_for_high_ot[i], &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, PRF_limited_by_offset, &report_error);
}
- check_another_max_value (0.95/fabs(ChannelStateToTest[i].delay), &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, Delay_Exceeds_95Period, &report_error);
+ if (fabs(ChannelStateToTest[i].delay) > 0.0) {
+ check_another_max_value (0.95/fabs(ChannelStateToTest[i].delay), &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, Delay_Exceeds_95Period, &report_error);
+ }
if (globals.Flash.min_pw[i] > 0.0) {