Skip to content

Commit

Permalink
fix parsing CRC as record
Browse files Browse the repository at this point in the history
CRC is not part of the data, only look at first 1022 bytes.
Should help fix:
* bewest/decoding-carelink#196


Former-commit-id: 753d8af0f7f3a8f44f8611871b47ce6ec5d8e613
Former-commit-id: e0a780fe0636cdd79ed3a37c17d8a0de11338090 [formerly fa7ab4415f1e748cf72dc402338d40f6b653bee8]
Former-commit-id: 19f2e61a624a9d3f64bf88488c2a49fba04efbec
Former-commit-id: f9111d61da01ed5b88d36728499290ef11648b31
  • Loading branch information
bewest committed Jun 22, 2016
1 parent 35461e7 commit cda7214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decocare/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def clean (self, data):
# data.reverse( )
# self.data = self.eat_nulls(data)
#self.data.reverse( )
self.data = data[:]
self.data = data[0:1022]
# XXX: under some circumstances, zero is the correct value and
# eat_nulls actually eats valid data. This ugly hack restores two
# nulls back ot the end.
Expand Down

0 comments on commit cda7214

Please sign in to comment.