From 2bff39db07f23a1983ff099a94f1705917a1fd07 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Thu, 14 Aug 2014 14:20:04 -0400 Subject: remove AVRQ-3-B support --- error_utils.c | 53 ++++++++++++----------------------------------------- 1 file changed, 12 insertions(+), 41 deletions(-) (limited to 'error_utils.c') diff --git a/error_utils.c b/error_utils.c index bd52ccc..a98c7af 100644 --- a/error_utils.c +++ b/error_utils.c @@ -41,7 +41,7 @@ void set_gpib_error_flags (int error_num) case UnknownUnits: case InvalidChannel: case ThisShouldntHappen: - case ampl_min_max_obsolete: + case obsolete_feature: case zero_equiv_ampl_too_large: GPIB_Set_Command_Error(); break; @@ -539,8 +539,8 @@ void get_error_text(gchar **response, int error_num) format_error_text(response,-300,"Not ready for commands yet. Still booting up."); break; - case ampl_min_max_obsolete: - format_error_text(response,-200,"Ampl min/max mode is obsolete. Use fixed ampl points instead."); + case obsolete_feature: + format_error_text(response,-200,"Obsolete feature enabled. Re-program."); break; case zero_equiv_ampl_too_large: @@ -659,15 +659,12 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) if (!globals.Flash.ChanKey_current_limit) for (i=1; i 200.0)) { @@ -1069,32 +1066,6 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) /* disable amplitude checks if amplitude calibration is in progress */ if (!globals.Flags.extended_ampl_min_max) { - globals.Constraints.err_max_vcc1[i]=globals.Flash.vcc1_max[i]; - globals.Constraints.err_max_vcc2[i]=globals.Flash.vcc2_max[i]; - globals.Constraints.err_max_vlogic[i]=ChannelStateToTest[0].vcc1; - globals.Constraints.err_min_vcc1[i]=0.0; - globals.Constraints.err_min_vcc2[i]=globals.Flash.vcc2_min[i]; - globals.Constraints.err_min_vlogic[i]=0.0; - if ( ChannelStateToTest[i].vcc1>(1.001*globals.Constraints.err_max_vcc1[i])) { - report_error=amplitude_upper_limit; - } - if ( ChannelStateToTest[i].vcc2>(1.001*globals.Constraints.err_max_vcc2[i])) { - report_error=amplitude_upper_limit; - } - if ( ChannelStateToTest[i].vlogic>(1.001*globals.Constraints.err_max_vlogic[i])) { - report_error=amplitude_upper_limit; - } - if ( ChannelStateToTest[i].vcc1