diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-28 20:53:22 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-28 20:53:22 +0100 |
commit | fadf883509eaa3350efabc906fb5a36635965097 (patch) | |
tree | f3753cf1de252773b346e3fcedc392d66799fee3 /src/fsm/cw.c | |
parent | 651f4ec9bd58953bf9c94a4134d02235f85c12cf (diff) | |
download | glutte-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.c | 4 |
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 / |