fix turnout line format

add shortcuts for more turnouts
This commit is contained in:
2022-01-27 21:34:04 +01:00
parent 4ff73760e5
commit 840cec975d
2 changed files with 11 additions and 1 deletions

View File

@ -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;
}