aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm/cw.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-28 20:53:22 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-28 20:53:22 +0100
commitfadf883509eaa3350efabc906fb5a36635965097 (patch)
treef3753cf1de252773b346e3fcedc392d66799fee3 /src/fsm/cw.c
parent651f4ec9bd58953bf9c94a4134d02235f85c12cf (diff)
downloadglutte-o-matic-fadf883509eaa3350efabc906fb5a36635965097.tar.gz
glutte-o-matic-fadf883509eaa3350efabc906fb5a36635965097.tar.bz2
glutte-o-matic-fadf883509eaa3350efabc906fb5a36635965097.zip
Adapt CW freq and speed to recordings
Diffstat (limited to 'src/fsm/cw.c')
-rw-r--r--src/fsm/cw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fsm/cw.c b/src/fsm/cw.c
index da83383..d17a892 100644
--- a/src/fsm/cw.c
+++ b/src/fsm/cw.c
@@ -250,8 +250,8 @@ static void cw_task(void *pvParameters)
cw_transmit_ongoing = 1;
- const int samples_per_dit = (cw_samplerate * 10) /
- cw_fill_msg_current.dit_duration;
+ const int samples_per_dit =
+ (cw_samplerate * cw_fill_msg_current.dit_duration) / 1000;
// Angular frequency of NCO
const float omega = 2.0f * FLOAT_PI * cw_fill_msg_current.freq /