summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/error_utils.c b/error_utils.c
index 603d072..50bc75d 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -41,6 +41,7 @@ void set_gpib_error_flags (int error_num)
case UnknownUnits:
case InvalidChannel:
case ThisShouldntHappen:
+ case ampl_min_max_obsolete:
GPIB_Set_Command_Error();
break;
case query_error_interrupted:
@@ -537,6 +538,10 @@ 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.");
+ break;
+
default:
format_error_text(response,-200,"Specific problem unknown.");
}
@@ -690,6 +695,12 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
break;
}
+
+ // check for obsolete configurations - but allow further checks
+ if (globals.Flash.ampl_min_max_only[i]) {
+ report_error = ampl_min_max_obsolete;
+ }
+
/* calculate maximum duty cycle based on amplitude and load, for later use */
max_duty_high_ampl=globals.Flash.max_duty_high[i];