summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-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;
}