diff options
-rw-r--r-- | device-functions.c | 6 |
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 { |