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.
soapy_support
Jon Szymaniak 8 years ago committed by Dimitri Stolnikov
parent 9fd5b367c1
commit 8d9e6b58bb
  1. 4
      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;

Loading…
Cancel
Save