From fccd1af55e87ecf42ae2f66327f51d2547bd9882 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:05:02 -0500 Subject: do not set advance/delay mode for CH2 delay --- device-functions.c | 13 ++++++++----- 1 file 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; } -- cgit