This library currently only works on 8 bit AVR, due to an assumption that signed int is 16 bits. On 32 bit boards, negative acceleration reads as large positive numbers.
This pull request just adds a cast to int16_t, to allow 32 bit processors to get the same result.
This library currently only works on 8 bit AVR, due to an assumption that signed int is 16 bits. On 32 bit boards, negative acceleration reads as large positive numbers.
This pull request just adds a cast to int16_t, to allow 32 bit processors to get the same result.