Skip to content

Commit

Permalink
Fix error_correction typo introduced in d287d07
Browse files Browse the repository at this point in the history
Github: Closes #4
  • Loading branch information
jmccrohan committed Apr 14, 2022
1 parent 1b41f1d commit 888ae19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysolarmanv5/pysolarmanv5.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _v5_frame_decoder(self, v5_frame):
if frame_len != (frame_len_without_payload_len + payload_len):
if self.verbose:
print("frame_len does not match payload_len.")
if self.error_correction:
if self.v5_error_correction:
frame_len = frame_len_without_payload_len + payload_len

if (v5_frame[0] != int.from_bytes(self.v5_start, byteorder="big")) or (
Expand Down

0 comments on commit 888ae19

Please sign in to comment.