修改命名

This commit is contained in:
walker 2023-12-13 11:24:22 +08:00
parent f0fd68b5d6
commit 20c38ec96d
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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 {