Skip to content
Prev Previous commit
more precise error message
  • Loading branch information
2bndy5 authored Oct 29, 2019
commit 9979fa89e3f0e4972aac9f8a8137aee11d92ef59
3 changes: 2 additions & 1 deletion adafruit_mcp3xxx/analog_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def __init__(self, mcp, positive_pin, negative_pin=None):
if self.is_differential:
self._pin_setting = self._mcp.DIFF_PINS.get((positive_pin, negative_pin), None)
if self._pin_setting is None:
raise ValueError("Differential pin mapping not defined. Please read the docs.")
raise ValueError("Differential pin mapping not defined. Please read the "
"documentation for valid differential channel mappings.")

@property
def value(self):
Expand Down