adafruit / Adafruit_LIS3DH

Arduino Library for Adafruit LIS3DH breakout board
Other
72 stars 57 forks source link

Update getEvent to match new bool return value #9

Closed ryan-feeley closed 7 years ago

ryan-feeley commented 7 years ago

Return statement was missing from bool Adafruit_LIS3DH::getEvent(sensors_event_t *event). Pattern matching with the ALDX345 library, the Adafruit_Sensor API was changed at some point, and the proper value for the LIS3DH sensor is to return true.

I discovered the bug based on a warning from clang.

ladyada commented 7 years ago

thx!