stadelmanma / fitparse-rs

Rust library to parse FIT formatted files
MIT License
54 stars 10 forks source link

Handle zero fit header crc #9

Closed stadelmanma closed 3 years ago

stadelmanma commented 3 years ago

Properly parse FIT files with a header CRC value of 0. This wasn't clear in the protocol documentation but when the header CRC is equal to 0 we treat it as if i doesn't exist and all bytes are used to compute the end of file CRC.

@ddboline thank you for bringing this to my attention. I didn't realize what your initial PR was trying to address, let me know if this implementation meets your needs.