kopia lustrzana https://gitlab.com/eliggett/wfview
Changed collision detection code so that we can more easily see what
message was missed.merge-requests/5/head
rodzic
43d281cda7
commit
815591f07d
|
@ -117,15 +117,17 @@ void commHandler::receiveDataIn()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(inPortData.contains("\xFC"))
|
|
||||||
{
|
|
||||||
//qInfo(logSerial()) << "Transaction contains collision data. Dumping.";
|
|
||||||
port->commitTransaction();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(inPortData.startsWith("\xFE\xFE"))
|
if(inPortData.startsWith("\xFE\xFE"))
|
||||||
{
|
{
|
||||||
|
if(inPortData.contains("\xFC"))
|
||||||
|
{
|
||||||
|
//qInfo(logSerial()) << "Transaction contains collision data. Dumping.";
|
||||||
|
//printHex(inPortData, false, true);
|
||||||
|
port->commitTransaction();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(inPortData.endsWith("\xFD"))
|
if(inPortData.endsWith("\xFD"))
|
||||||
{
|
{
|
||||||
// good!
|
// good!
|
||||||
|
|
Ładowanie…
Reference in New Issue