Skip to content

Commit

Permalink
fix dshot cmd packet reset
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp0dermik-code committed Aug 1, 2024
1 parent 65b2b38 commit a8ebecb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ def decode(self):
self.state_dshot = State_Dshot.RESET
#TODO: Change??
dshot_value.packet.es = self.samplenum
else:
#error, reset
self.state_dshot = State_Dshot.RESET
if result and self.dshot_cfg.bidirectional:
self.state = State.TELEM

Expand Down

0 comments on commit a8ebecb

Please sign in to comment.