fix turnout line format
add shortcuts for more turnouts
This commit is contained in:
@ -116,7 +116,7 @@ std::shared_ptr<Item> Microcontroller::processTurnoutLine(const QString& buffer)
|
||||
QStringList bufferList = buffer.split(' ');
|
||||
if(bufferList.size() >= 6 && buffer.startsWith("NUMBER:"))
|
||||
{
|
||||
return std::shared_ptr<Item>(new Turnout(bufferList[1].toInt(), bufferList[5].toInt()));
|
||||
return std::shared_ptr<Item>(new Turnout(bufferList[1].toInt(), bufferList[1].toInt(), bufferList[5].toInt()));
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user