Skip to content

Commit

Permalink
Docstring for PEC property
Browse files Browse the repository at this point in the history
  • Loading branch information
kplindegaard committed Dec 5, 2020
1 parent cc3ea6b commit 57916a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions smbus2/smbus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def enable_pec(self, enable=True):
ioctl(self.fd, I2C_PEC, self._pec)

pec = property(_get_pec, enable_pec) # Drop-in replacement for smbus member "pec"
"""
Get and set SMBus PEC. 0 = disabled (default), 1 = enabled.
"""

def _set_address(self, address, force=None):
"""
Expand Down

0 comments on commit 57916a8

Please sign in to comment.