Changeset - f8d62b4af830
[Not reviewed]
new-reader
0 1 0
Hasan Yavuz Ă–ZDERYA - 9 years ago 2016-05-29 17:03:18
hy@ozderya.net
added log message for missing sync byte
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/framedreader.cpp
Show inline comments
 
@@ -216,12 +216,16 @@ void FramedReader::onDataReady()
 
                sync_i++;
 
                if (sync_i == (unsigned) syncWord.length())
 
                {
 
                    gotSync = true;
 
                }
 
            }
 
            else
 
            {
 
                if (debugModeEnabled) qCritical() << "Missed " << sync_i+1 << "th sync byte.";
 
            }
 
        }
 
        else if (hasSizeByte && !gotSize) // skipped if fixed frame size
 
        {
 
            frameSize = 0;
 
            _device->getChar((char*) &frameSize);
 

	
0 comments (0 inline, 0 general)