[修改]联锁通信日志格式
This commit is contained in:
parent
42f299f553
commit
9fbc60e93a
4
third_party/interlock/beijing12/interlock.go
vendored
4
third_party/interlock/beijing12/interlock.go
vendored
@ -53,7 +53,7 @@ type interlockProxy struct {
|
||||
|
||||
// 驱动信息进行转发
|
||||
func (i *interlockProxy) handleDriverInfo(b []byte) {
|
||||
slog.Info("收到联锁驱动继电器数据:", fmt.Sprintf("%x", b))
|
||||
slog.Info(fmt.Sprintf("收到联锁驱动继电器数据:%x", b))
|
||||
handler := i.manager
|
||||
if handler != nil {
|
||||
handler.HandleInterlockDriverInfo(i.runConfig.Code, b)
|
||||
@ -106,7 +106,7 @@ func (i *interlockProxy) collectInfoStateTask(ctx context.Context) {
|
||||
if err != nil {
|
||||
slog.Error("向联锁发送继电器状态失败:", err)
|
||||
} else {
|
||||
slog.Error("向联锁发送继电器数据成功:", fmt.Sprintf("%x", collectInfoState.Encode()))
|
||||
slog.Error(fmt.Sprintf("向联锁发送继电器数据成功:%x", collectInfoState.Encode()))
|
||||
}
|
||||
}
|
||||
time.Sleep(time.Millisecond * InterlockMessageSendInterval)
|
||||
|
Loading…
Reference in New Issue
Block a user