Skip to content

Commit

Permalink
Merge pull request #39 from mutability/fractional-gain
Browse files Browse the repository at this point in the history
Fix --gain with fractional gain values.
  • Loading branch information
MalcolmRobb committed Sep 30, 2014
2 parents a82df07 + 95ccb90 commit 8725ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8725ba0

Please sign in to comment.