projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37eece5
)
Handle case where CW key-down arrives before RX/TX transition is complete.
author
c vw
<dl1ycf@darc.de>
Tue, 22 Feb 2022 14:06:25 +0000
(15:06 +0100)
committer
c vw
<dl1ycf@darc.de>
Tue, 22 Feb 2022 14:06:25 +0000
(15:06 +0100)
transmitter.c
patch
|
blob
|
history
diff --git
a/transmitter.c
b/transmitter.c
index 719439cf4aa9dbc008cb341fc48e667969ab4d58..d148fffa188656395ba59c82dd3a2dbfb598aa9c 100644
(file)
--- a/
transmitter.c
+++ b/
transmitter.c
@@
-1497,7
+1497,7
@@
void add_mic_sample(TRANSMITTER *tx,float mic_sample) {
//
cw_not_ready=1;
cw_key_up=0;
- cw_key_down=0;
+ if (cw_key_down > 0) cw_key_down--; // in case it occured before the RX/TX transition
cw_shape=0;
// insert "silence" in CW audio and TX IQ buffers
cw_shape_buffer48[tx->samples]=0.0;