summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device-functions.c b/device-functions.c
index f616d41..cda68ba 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -333,8 +333,8 @@ int Set_Amplitude(int check_possible_only,int pol_override,int override_on,int w
atten_ctl = BIT_LOW;
}
- // XRLY1 for CH1, XRLY2 for CH2
- set_shiftreg_bits(SR_2, XTR_POS + 1 + channel, ONE_BIT, atten_ctl);
+ // XRLY1 for CH1, XRLY4 for CH2
+ set_shiftreg_bits(SR_2, XTR_POS + 1 + (channel*3), ONE_BIT, atten_ctl);
} else if (attenuator_count(channel) > 1) {