[hamradio-commits] [dump1090] 333/389: Fix --gain with fractional gain values.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch master
in repository dump1090.

commit 95ccb90c7672cd2ead019f1a18b83a116029c08d
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Wed Sep 24 20:01:06 2014 +0100

    Fix --gain with fractional gain values.
---
 dump1090.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dump1090.c b/dump1090.c
index b3bef28..3454aa0 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -581,7 +581,7 @@ int main(int argc, char **argv) {
         if (!strcmp(argv[j],"--device-index") && more) {
             Modes.dev_index = verbose_device_search(argv[++j]);
         } else if (!strcmp(argv[j],"--gain") && more) {
-            Modes.gain = (int) atof(argv[++j])*10; // Gain is in tens of DBs
+            Modes.gain = (int) (atof(argv[++j])*10); // Gain is in tens of DBs
         } else if (!strcmp(argv[j],"--enable-agc")) {
             Modes.enable_agc++;
         } else if (!strcmp(argv[j],"--freq") && more) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list