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,10 +136,10 @@ int bladerf_sink_c::work( int noutput_items,
|
|||
std::cerr << _pfx
|
||||
<< "Consecutive error limit hit. Shutting down."
|
||||
<< std::endl;
|
||||
}
|
||||
} else {
|
||||
_consecutive_failures = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return noutput_items;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue