summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 04:27:27 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 04:27:27 +0900
commitf96c0cbe62a8eb5bb544a40a6ef4231652829812 (patch)
tree8a64a457cf59b2772920a6dd40f4f54dc963777d /device-functions.c
parent99fa13aa3b871061991a4242d02ee773b75b2458 (diff)
misc fixes to max zout checksINSTRUMENT_6_4_27
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index b9fdb0f..25814c1 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -1350,14 +1350,26 @@ static void stop_gate_override ()
int Set_zout(int channel,int setting,int really_for_zout)
{
+ int error_num;
+ int i;
+
int update_zout_slowly;
+ update_zout_slowly=NO;
/* abandon if high channel selected by user but not enabled by firmware */
if (channel && !globals.Flash.ChanKey_zout) {
return InvalidChannel;
}
- update_zout_slowly=NO;
+ if (really_for_zout) {
+ for (i=0; i<max_channels; ++i) {
+ TestState[i]=globals.ChannelState[i];
+ }
+ TestState[channel].zout=setting;
+ if ((error_num=Error_check(TestState))) {
+ return error_num;
+ }
+ }
/* The Zout hardware and software is controlled by PW commands in the AVPP. */
/* This mode is signalled by really_for_zout=0 */