From 0e7f48ac8d02d69d8e119afc6c9da615f836123b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:18:54 -0500 Subject: fixed last commit --- device-functions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { -- cgit