forked from sdr/gr-osmosdr
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:
parent
9fd5b367c1
commit
8d9e6b58bb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue