Skip to content

Commit

Permalink
fix: Heartbeat response seq must be in range(0, 256)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Dec 22, 2024
1 parent a45c03b commit f7555b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solarman/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def _heartbeat_response(self, request_frame):
+ self.v5_end
)

v5_frame[5] = v5_frame[5] + 1
v5_frame[5] = (v5_frame[5] + 1) & 0xFF

v5_frame[-2] = self._calculate_v5_frame_checksum(v5_frame)

Expand Down

0 comments on commit f7555b5

Please sign in to comment.