Skip to content

Commit

Permalink
fix: calculate data size should reset lru (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Dec 28, 2023
1 parent 5320f52 commit 955325a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions encoder/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ func (e *Encoder) calculateDataSize(fit *proto.Fit) error {
e.dataSize = 0
e.n = n
e.crc16.Reset()
e.localMesgNumLRU.Reset()

return nil
}
Expand Down

0 comments on commit 955325a

Please sign in to comment.