From de81dfcab3036382d82d67ca151bc870d1341fe2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Jan 1970 10:30:58 +0900 Subject: use XTR1 and XTR4 for dual-channel single attenuators, not XTR1 and XTR2 --- device-functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'device-functions.c') 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) { -- cgit