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.
This commit is contained in:
Jon Szymaniak 2014-11-04 21:52:23 -05:00 committed by Dimitri Stolnikov
parent 9fd5b367c1
commit 8d9e6b58bb
1 changed files with 2 additions and 2 deletions

View File

@ -136,9 +136,9 @@ int bladerf_sink_c::work( int noutput_items,
std::cerr << _pfx std::cerr << _pfx
<< "Consecutive error limit hit. Shutting down." << "Consecutive error limit hit. Shutting down."
<< std::endl; << std::endl;
} else {
_consecutive_failures = 0;
} }
} else {
_consecutive_failures = 0;
} }
return noutput_items; return noutput_items;