Skip to content

Commit

Permalink
probe prints optional gain range
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Feb 2, 2017
1 parent d5793c0 commit 896c5ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/SoapySDRProbe.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2015-2016 Josh Blum
// Copyright (c) 2015-2017 Josh Blum
// Copyright (c) 2016-2016 Bastille Networks
// SPDX-License-Identifier: BSL-1.0

Expand All @@ -21,7 +21,9 @@ std::string toString(const std::vector<Type> &options)
std::string toString(const SoapySDR::Range &range)
{
std::stringstream ss;
ss << "[" << range.minimum() << ", " << range.maximum() << "]";
ss << "[" << range.minimum() << ", " << range.maximum();
if (range.step() != 0.0) ss << ", " << range.step();
ss << "]";
return ss.str();
}

Expand Down

0 comments on commit 896c5ef

Please sign in to comment.