Skip to content

Commit

Permalink
Handle re-opening a closed bus (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik-nil-acc authored Mar 25, 2024
1 parent 9df07b7 commit a7bede7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smbus2/smbus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ def close(self):
os.close(self.fd)
self.fd = None
self._pec = 0
self.address = None
self._force_last = None

def _get_pec(self):
return self._pec
Expand Down

0 comments on commit a7bede7

Please sign in to comment.