mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
SDRdaemonFEC: GUI refactoring: changed status calculation so that it is OK when idle (256 blocks)
This commit is contained in:
parent
5d4681bffa
commit
45b3c73c20
@ -234,7 +234,13 @@ void SDRdaemonFECUDPHandler::tick()
|
|||||||
m_tickCount = 0;
|
m_tickCount = 0;
|
||||||
|
|
||||||
//framesDecodingStatus = (minNbOriginalBlocks == nbOriginalBlocks ? 2 : (minNbOriginalBlocks < nbOriginalBlocks - nbFECblocks ? 0 : 1));
|
//framesDecodingStatus = (minNbOriginalBlocks == nbOriginalBlocks ? 2 : (minNbOriginalBlocks < nbOriginalBlocks - nbFECblocks ? 0 : 1));
|
||||||
framesDecodingStatus = (minNbBlocks == 128 + nbFECblocks ? 2 : (minNbBlocks < 128 ? 0 : 1));
|
if (minNbBlocks < nbOriginalBlocks) {
|
||||||
|
framesDecodingStatus = 1;
|
||||||
|
} else if (minNbBlocks < nbOriginalBlocks + nbFECblocks) {
|
||||||
|
framesDecodingStatus = 0;
|
||||||
|
} else {
|
||||||
|
framesDecodingStatus = 2;
|
||||||
|
}
|
||||||
|
|
||||||
SDRdaemonFECInput::MsgReportSDRdaemonFECStreamTiming *report = SDRdaemonFECInput::MsgReportSDRdaemonFECStreamTiming::create(
|
SDRdaemonFECInput::MsgReportSDRdaemonFECStreamTiming *report = SDRdaemonFECInput::MsgReportSDRdaemonFECStreamTiming::create(
|
||||||
m_tv_sec,
|
m_tv_sec,
|
||||||
|
Loading…
Reference in New Issue
Block a user