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 4026b76..e0f6446 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -425,6 +425,10 @@ void get_error_text(gchar **response, int error_num)
format_error_text(response,-221,"Double pulse separation is too high. It must be < 95% of the period.");
break;
+ case Cant_Do_Burst_and_Double:
+ format_error_text(response,-221,"Can't use burst mode and double pulse mode at the same time.");
+ break;
+
case queue_overflow:
format_error_text(response,-350,"Clear with *cls or syst:err.");
break;
@@ -998,6 +1002,10 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
report_error=Double_Separation_Too_Large;
}
}
+
+ if (ChannelStateToTest[i].burst_count>1) {
+ report_error=Cant_Do_Burst_and_Double;
+ }
}
if ((globals.Flash.max_avg_ampl[i]) > 0.0 && (fabs(ChannelStateToTest[i].amplitude)) > 0.0) {