1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

SDRdaemonFEC: GUI refactoring: changed status calculation so that it is OK when idle (256 blocks)

This commit is contained in:
f4exb 2017-06-08 19:21:33 +02:00
parent 5d4681bffa
commit 45b3c73c20

View File

@ -234,7 +234,13 @@ void SDRdaemonFECUDPHandler::tick()
m_tickCount = 0;
//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(
m_tv_sec,