altos: Fix ADXL375 SPI mode definitions and usage
authorKeith Packard <keithp@keithp.com>
Thu, 7 Apr 2022 05:14:32 +0000 (22:14 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Apr 2022 05:14:32 +0000 (22:14 -0700)
commitb930b52922a1bbb34cb3fda67c2e9b4695a7330f
tree97c7773ee065455c038fbc99d8c21e0e5fd55540
parentf35d18ca773a109fea572ee1e7134bdc5c4bce14
altos: Fix ADXL375 SPI mode definitions and usage

3-wire mode is 1, 4-wire mode is 0. Fortunately, I also messed up the
shift value, so the 1 got shifted on top of one of the fixed-value bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_adxl375.c
src/drivers/ao_adxl375.h