Skip to content

Commit

Permalink
Merge pull request #21 from jepler/remove-bad-whitespace-directive
Browse files Browse the repository at this point in the history
remove bad-whitespace pylint directive
  • Loading branch information
dhalbert committed Aug 23, 2020
2 parents 7938a82 + 47a6c3f commit a60bd58
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions adafruit_max31865.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MAX31865.git"

# pylint: disable=bad-whitespace
# Register and other constant values:
_MAX31865_CONFIG_REG = const(0x00)
_MAX31865_CONFIG_BIAS = const(0x80)
Expand All @@ -85,7 +84,6 @@
_MAX31865_FAULT_OVUV = const(0x04)
_RTD_A = 3.9083e-3
_RTD_B = -5.775e-7
# pylint: enable=bad-whitespace


class MAX31865:
Expand Down Expand Up @@ -203,14 +201,12 @@ def fault(self):
- OVUV
"""
faults = self._read_u8(_MAX31865_FAULTSTAT_REG)
# pylint: disable=bad-whitespace
highthresh = bool(faults & _MAX31865_FAULT_HIGHTHRESH)
lowthresh = bool(faults & _MAX31865_FAULT_LOWTHRESH)
refinlow = bool(faults & _MAX31865_FAULT_REFINLOW)
refinhigh = bool(faults & _MAX31865_FAULT_REFINHIGH)
rtdinlow = bool(faults & _MAX31865_FAULT_RTDINLOW)
ovuv = bool(faults & _MAX31865_FAULT_OVUV)
# pylint: enable=bad-whitespace
return (highthresh, lowthresh, refinlow, refinhigh, rtdinlow, ovuv)

def clear_faults(self):
Expand Down

0 comments on commit a60bd58

Please sign in to comment.