diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-12-06 12:33:37 -0500 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-12-06 12:33:37 -0500 |
commit | c610d09ad0757d8002df76ffec1dfe6c4c1e254c (patch) | |
tree | ba401cf2b89e46c3c5b97dede3cf0a5a65545e66 /device-functions.c | |
parent | 04b10a008d3786bc38a4c4c80fb31572db81de1a (diff) |
allow use of PRF limiter in pulsers with double pulse mode
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 6 |
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; |