aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-30 20:06:01 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:01:19 +0100
commit54ed5d5f822f64a12cdc06abfaddf4cb18bfa560 (patch)
treeea11abe47560597686d7f703efb712930dfec6c9 /src/amps
parentfaa3dfb7d402f1dbd0ca4b0ac91ea268ed59df35 (diff)
AMPS: Fixed setting of signal polarity when using SDR
Diffstat (limited to 'src/amps')
-rw-r--r--src/amps/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amps/main.c b/src/amps/main.c
index b853b76..b742725 100644
--- a/src/amps/main.c
+++ b/src/amps/main.c
@@ -336,7 +336,7 @@ int main(int argc, char *argv[])
polarity = 1; /* positive */
else if (!strcmp(flip_polarity, "yes"))
polarity = -1; /* negative */
- if (!strcmp(audiodev[0], "sdr"))
+ else if (!strcmp(audiodev[0], "sdr"))
polarity = 1; /* SDR is always positive */
else {
fprintf(stderr, "You must define, if the the TX deviation polarity has to be flipped. (-F yes | no) See help.\n");