Fix to code that allows for pseudo frame sending without any actual
CAN buses connected.
This commit is contained in:
@@ -94,10 +94,10 @@ void CANConManager::refreshCanList()
|
|||||||
|
|
||||||
if (mConns.count() == 0)
|
if (mConns.count() == 0)
|
||||||
{
|
{
|
||||||
|
tempFrames.clear();
|
||||||
//TODO: Seems to crash under heavy load. Find out why.
|
//TODO: Seems to crash under heavy load. Find out why.
|
||||||
if(buslessFrames.size()) {
|
if(buslessFrames.size()) {
|
||||||
tempFrames.clear();
|
tempFrames = buslessFrames; //make a copy and pass that copy
|
||||||
tempFrames.append(buslessFrames); //make a copy and pass that copy
|
|
||||||
buslessFrames.clear(); //delete all frames from the original
|
buslessFrames.clear(); //delete all frames from the original
|
||||||
emit framesReceived(nullptr, tempFrames);
|
emit framesReceived(nullptr, tempFrames);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user