summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index 353f1b1..9ccacce 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -413,8 +413,12 @@ 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
+ // units with PG A, B, and C. This corresponds to PG B.
+ globals.Registers.shift_reg_out[2] |= (long)0x80000;
} else {
cap_range_control = 1 << (relay_range-2);
+ globals.Registers.shift_reg_out[2] &= (long)0x7ffff;
}
}
}