Skip to content

Commit

Permalink
Clean up code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Dec 11, 2017
1 parent 3b7e7f0 commit 52ef972
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ function setupDevice (opts) {
}

// Set gain, frequency, sample rate, and reset the device
rtlsdr.set_tuner_gain_mode(dev,
(opts.gain === AUTO_GAIN) ? 0 : 1)
rtlsdr.set_tuner_gain_mode(dev, opts.gain === AUTO_GAIN ? 0 : 1)
if (opts.gain !== AUTO_GAIN) {
if (opts.gain === MAX_GAIN) {
// Find the maximum gain available
Expand Down

0 comments on commit 52ef972

Please sign in to comment.