diff options
author | Jon Szymaniak <jon.szymaniak@gmail.com> | 2014-11-04 21:52:23 -0500 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-11-06 21:30:32 +0100 |
commit | 8d9e6b58bb8dac8a92603feb8804c42ecc1e5945 (patch) | |
tree | 3b883e1c85c4bd963b13a40bf825f61fd1f0f98d /lib/bladerf | |
parent | 9fd5b367c115c19402d35e3408daf45888918b43 (diff) |
bladeRF: Fixed incorrectly placed 'else'
This addresses a defect introduced in 6e75abf which causes the
_consecutive_failures count to get reset with every failure, rather
then upon a successful return value.
Diffstat (limited to 'lib/bladerf')
-rw-r--r-- | lib/bladerf/bladerf_sink_c.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bladerf/bladerf_sink_c.cc b/lib/bladerf/bladerf_sink_c.cc index 4d26416..2dc2e04 100644 --- a/lib/bladerf/bladerf_sink_c.cc +++ b/lib/bladerf/bladerf_sink_c.cc @@ -136,9 +136,9 @@ int bladerf_sink_c::work( int noutput_items, std::cerr << _pfx << "Consecutive error limit hit. Shutting down." << std::endl; - } else { - _consecutive_failures = 0; } + } else { + _consecutive_failures = 0; } return noutput_items; |