fix turnout line format
add shortcuts for more turnouts
This commit is contained in:
parent
4ff73760e5
commit
840cec975d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue