summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:18:54 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:18:54 -0500
commit0e7f48ac8d02d69d8e119afc6c9da615f836123b (patch)
tree408a22453f61f1a3f868a3da023fedd16bef2f43 /device-functions.c
parentf5183f3411f852fcfa3932fbbd2c61ed64c5e870 (diff)
fixed last commit
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index 9ccacce..0121819 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -395,6 +395,10 @@ int Set_Pw(int check_possible_only,int word_override,int range_override,int chan
/* AVPP-style: lower PW range is voltage-controlled */
if (globals.Flash.volt_ctrl_pw[channel]) {
+
+ // reset PG B line (see below)
+ globals.Registers.shift_reg_out[2] &= (long)0x7ffff;
+
/* use DAC8420 to control PW in lowest PW range */
if (!relay_range) {
set_dac(globals.Flash.pw_dac[channel],word_out);
@@ -413,7 +417,7 @@ int Set_Pw(int check_possible_only,int word_override,int range_override,int chan
if (relay_range==1) {
cap_range_control=0;
- // also, set XTRA RLY 5 high in this range for AVR-E3-B-R5-N-M5, and other
+ // set XTRA RLY 5 high in this range for AVR-E3-B-R5-N-M5, and other
// units with PG A, B, and C. This corresponds to PG B.
globals.Registers.shift_reg_out[2] |= (long)0x80000;
} else {