summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:05:02 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:05:02 -0500
commitfccd1af55e87ecf42ae2f66327f51d2547bd9882 (patch)
tree685dd45d04cef245fb7d3849ea04802f8b1d60f9
parent48a508009141692b6b6c2f6169455b29c4b64ec4 (diff)
do not set advance/delay mode for CH2 delayINSTRUMENT_5_0_9b
-rw-r--r--device-functions.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/device-functions.c b/device-functions.c
index 0dd840b..47a5bcd 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -1379,13 +1379,16 @@ int Set_EA(int channel,int mode)
int Set_AdvDel(int channel,int setting)
{
- if (setting==to_Advance) {
- set_shiftreg_bits(SR_0, POS_6, ONE_BIT, BIT_HIGH); /* turn advance on */
- } else {
- set_shiftreg_bits(SR_0, POS_6, ONE_BIT, BIT_LOW); /* turn delay on */
+ if (channel == 0) {
+ if (setting==to_Advance) {
+ set_shiftreg_bits(SR_0, POS_6, ONE_BIT, BIT_HIGH); /* turn advance on */
+ } else {
+ set_shiftreg_bits(SR_0, POS_6, ONE_BIT, BIT_LOW); /* turn delay on */
+ }
+ Set_Update_Chans();
}
- Set_Update_Chans();
+ // no equivalent for CH2
return OK;
}