Skip to content

Fix faulty ValueError message #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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