Skip to content

Commit

Permalink
Recalculate bad FCS for protocol versions 8 or newer (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga committed Nov 10, 2022
1 parent e74aa85 commit 8d9f185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bellows/cli/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def cb(frame_name, response):

# Later releases of EmberZNet incorrectly use a static FCS
fcs = data[-2:]
if s.ezsp_version == 8:
if s.ezsp_version >= 8:
computed_fcs = ieee_15_4_fcs(data[0:-2])
LOGGER.debug("Fixing FCS (expected %s, got %s)", computed_fcs, fcs)
data = data[0:-2] + computed_fcs
Expand Down

0 comments on commit 8d9f185

Please sign in to comment.