From fadf883509eaa3350efabc906fb5a36635965097 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 28 Dec 2015 20:53:22 +0100 Subject: Adapt CW freq and speed to recordings --- src/fsm/cw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fsm/cw.c') 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 / -- cgit v1.2.3