From 6264d1e20d7d37b1b2d1a5c0fb2c41e8ed203325 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 2 Oct 2013 14:50:29 -0400 Subject: Revert "added chans_opposite_polarities for AVR-D3-B-MS1 error checking" This reverts commit e1678aa56d0d1deaf003e0a04f09d26000d9eca5. --- error_utils.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'error_utils.c') diff --git a/error_utils.c b/error_utils.c index 718c40b..503724d 100644 --- a/error_utils.c +++ b/error_utils.c @@ -647,21 +647,6 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) } } - float real_max_ampl[max_channels]; - float real_min_ampl[max_channels]; - for (i=0; i 0.0) { - real_max_ampl[1] = 0.0; - } else { - real_min_ampl[1]= 0.0; - } - } for (i=0; (i=0.0 && ChannelStateToTest[i].amplitude<(0.999*globals.Constraints.err_min_ampl[i])) || (globals.Constraints.err_min_ampl[i]<0.0 && ChannelStateToTest[i].amplitude<(1.001*globals.Constraints.err_min_ampl[i])) ) { @@ -1098,8 +1083,7 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) /* --- check maximum amplitude --- */ - globals.Constraints.err_max_ampl[i]=real_max_ampl[i]; - + globals.Constraints.err_max_ampl[i]=globals.Flash.max_ampl[i]; if ( (globals.Constraints.err_max_ampl[i]>=0.0 && ChannelStateToTest[i].amplitude>(1.001*globals.Constraints.err_max_ampl[i])) || (globals.Constraints.err_max_ampl[i]<0.0 && ChannelStateToTest[i].amplitude>(0.999*globals.Constraints.err_max_ampl[i])) ) { report_error=amplitude_upper_limit; -- cgit