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)
|
||||
{
|
||||
tempFrames.clear();
|
||||
//TODO: Seems to crash under heavy load. Find out why.
|
||||
if(buslessFrames.size()) {
|
||||
tempFrames.clear();
|
||||
tempFrames.append(buslessFrames); //make a copy and pass that copy
|
||||
if(buslessFrames.size()) {
|
||||
tempFrames = buslessFrames; //make a copy and pass that copy
|
||||
buslessFrames.clear(); //delete all frames from the original
|
||||
emit framesReceived(nullptr, tempFrames);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user