btm
This commit is contained in:
parent
c59d3e35ba
commit
01cf27edb5
5
third_party/can_btm/balise_btm.go
vendored
5
third_party/can_btm/balise_btm.go
vendored
@ -109,6 +109,11 @@ func (s *btmCanetClient) Stop() {
|
||||
}
|
||||
}
|
||||
func (s *btmCanetClient) handleCanetFrames(cfs []byte) {
|
||||
defer func() {
|
||||
if e := recover(); e != nil {
|
||||
slog.Debug(fmt.Sprintf("handleCanetFrames异常[%s]", e))
|
||||
}
|
||||
}()
|
||||
//一个cannet 帧 13字节
|
||||
if len(cfs) > 0 && len(cfs)%13 == 0 {
|
||||
cfSum := len(cfs) / 13
|
||||
|
Loading…
Reference in New Issue
Block a user