From 73a9cd0b4c8c74afe78660a017f8de15037f27c4 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Fri, 22 Aug 2014 03:02:54 +0000 Subject: [PATCH] removed redundant code (thanks Graham) and doco change git-svn-id: https://svn.code.sf.net/p/freetel/code@1815 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/fdmdv.c | 3 +-- codec2-dev/src/freedv_api.h | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/codec2-dev/src/fdmdv.c b/codec2-dev/src/fdmdv.c index b57887e5..ca6f6aef 100644 --- a/codec2-dev/src/fdmdv.c +++ b/codec2-dev/src/fdmdv.c @@ -677,8 +677,7 @@ void generate_pilot_fdm(COMP *pilot_fdm, int *bit, float *symbol, if (*bit) *symbol = -*symbol; - else - *symbol = *symbol; + if (*bit) *bit = 0; else diff --git a/codec2-dev/src/freedv_api.h b/codec2-dev/src/freedv_api.h index 065772ed..909340e2 100644 --- a/codec2-dev/src/freedv_api.h +++ b/codec2-dev/src/freedv_api.h @@ -5,7 +5,9 @@ DATE CREATED: August 2014 Library of API functions that implement FreeDV "modes", useful for - embedding FreeDV in other programs. + embedding FreeDV in other programs. Please see the documentation + for each function in freedv_api.c, and the sample freedv_tx.c and + freedv_rx.c programs. \*---------------------------------------------------------------------------*/ -- 2.25.1