Skip to content

Commit

Permalink
Merge pull request #37 from tekktrik/dev/fix-value-error
Browse files Browse the repository at this point in the history
Fix faulty ValueError message
  • Loading branch information
gamblor21 authored Oct 6, 2022
2 parents 735dbbf + f209f8c commit b6083a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adafruit_adxl34x.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,7 @@ def enable_tap_detection(
self._write_register_byte(_REG_INT_ENABLE, active_interrupts)
self._enabled_interrupts["tap"] = 2
else:
raise ValueError(
"tap must be 0 to disable, 1 for single tap, or 2 for double tap"
)
raise ValueError("tap_count must be 1 for single tap or 2 for double tap")

def disable_tap_detection(self) -> None:
"""Disable tap detection"""
Expand Down

0 comments on commit b6083a5

Please sign in to comment.