adafruit / Adafruit_CircuitPython_ADXL34x

A CircuitPython driver for the ADXL34x family of accelerometers
MIT License
37 stars 14 forks source link

Tap detection disable reports illogical error #36

Closed DerBroader71 closed 2 years ago

DerBroader71 commented 2 years ago

According to https://github.com/adafruit/Adafruit_CircuitPython_ADXL34x/blob/506241b554e9ff36bb17080c8c0acdc5bbaf6594/adafruit_adxl34x.py#L393 it must be passed the correct value to disable it However, accelerometer.enable_tap_detection(tap_count=0) responds with:


  File "code.py", line 19, in <module>
  File "adafruit_adxl34x.py", line 393, in enable_tap_detection
ValueError: tap must be 0 to disable, 1 for single tap, or 2 for double tap```