summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 10:30:58 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 10:30:58 +0900
commitde81dfcab3036382d82d67ca151bc870d1341fe2 (patch)
tree3e0f30df1dabe0f85697641b1ce3740d73e029ce
parenta5a5d069c211304c0c7da2b0dd04889292e40970 (diff)
use XTR1 and XTR4 for dual-channel single attenuators, not XTR1 and XTR2
-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) {