修改应答器移位操作的报错提示信息

This commit is contained in:
joylink_zhangsai 2024-01-18 10:08:53 +08:00
parent a6e451e33f
commit 8cd0f61fb0
2 changed files with 3 additions and 1 deletions

View File

@ -681,7 +681,6 @@ func findEndTurnoutPortOrEndKm(repo *Repository, link *Link, startTp *TurnoutPor
break
}
}
link.bindDevices(devices...)
return endTp, endKm, err
}

View File

@ -313,5 +313,8 @@ func (t *TurnoutPort) Device() PortedDevice {
}
func (t *TurnoutPort) Turnout() *Turnout {
if t == nil {
return nil
}
return t.turnout
}