This commit is contained in:
xzb 2023-11-29 14:10:25 +08:00
parent c59d3e35ba
commit 01cf27edb5
1 changed files with 5 additions and 0 deletions

View File

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