Skip to content

Fix FIFO error in ADXL372 wrapper code #15

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion Arduino Uno R3/examples/ADXL372_example/adxl372.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
//#define ADXL_DEBUG

static int adxl_read_reg_multiple(adxl_spi_handle *spi, unsigned char reg,
unsigned char count, unsigned char *val)
unsigned count, unsigned char *val)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this removed the short after the unsigned. I would keep it.

{
reg = reg << 1 | ADXL_SPI_RNW;
return spi_write_then_read(spi, &reg, 1, val, count);
Expand Down