summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
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 */