summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/device-functions.c b/device-functions.c
index aca5cd3..353f1b1 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -750,9 +750,11 @@ int Set_Double(int channel,int new_setting)
}
if (new_setting == double_off) {
- globals.Registers.shift_reg_out[0] &= 0xdf; /* turn double-pulse off */
+ globals.Registers.shift_reg_out[0] &= 0xdf; // turn double-pulse off
+ Ctrl_PRF_Limiter (1); // normal prf limiting
} else {
- globals.Registers.shift_reg_out[0] |= 0x20; /* turn double-pulse on */
+ globals.Registers.shift_reg_out[0] |= 0x20; // turn double-pulse on
+ Ctrl_PRF_Limiter (0); // disable prf limiter
}
globals.ChannelState[channel].double_pulse=new_setting;