修改命名
This commit is contained in:
parent
f0fd68b5d6
commit
20c38ec96d
4
third_party/cidc_modbus/cidc_modbus.go
vendored
4
third_party/cidc_modbus/cidc_modbus.go
vendored
@ -32,11 +32,11 @@ func (m *cidcModbusServiceManage) Stop() {
|
||||
m.services = nil
|
||||
}
|
||||
|
||||
func TryStop() {
|
||||
func Stop() {
|
||||
serviceManage.Stop()
|
||||
}
|
||||
|
||||
func TryStart(vs *memory.VerifySimulation) error {
|
||||
func Start(vs *memory.VerifySimulation) error {
|
||||
for _, cmc := range vs.GetCidcModbusConfig() {
|
||||
if cmc.Open {
|
||||
cms, err := newCidcModbusService(vs, &cmc)
|
||||
|
@ -124,7 +124,7 @@ func runThirdParty(s *memory.VerifySimulation) error {
|
||||
// 车载BTM启动
|
||||
can_btm.Default().Start(s)
|
||||
// 联锁驱采Modbus服务启动
|
||||
err = cidcmodbus.TryStart(s)
|
||||
err = cidcmodbus.Start(s)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -148,7 +148,7 @@ func stopThirdParty(s *memory.VerifySimulation) {
|
||||
// 车载BTM停止
|
||||
can_btm.Default().Stop()
|
||||
// 联锁驱采Modbus服务停止
|
||||
cidcmodbus.TryStop()
|
||||
cidcmodbus.Stop()
|
||||
}
|
||||
|
||||
func createSimulationId(projectId int32) string {
|
||||
|
Loading…
Reference in New Issue
Block a user