diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-07-08 16:44:55 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-07-08 16:44:55 +0000 |
commit | 9b8d0b5f57b6bb0e5046139c40ecb5c4948154a8 (patch) | |
tree | 2bea088589656ec5682e14f920874ff497753714 /os/ex/ST | |
parent | 0c8fc98a9d6608eda478b3e5db3e48ce921e4375 (diff) | |
download | ChibiOS-9b8d0b5f57b6bb0e5046139c40ecb5c4948154a8.tar.gz ChibiOS-9b8d0b5f57b6bb0e5046139c40ecb5c4948154a8.tar.bz2 ChibiOS-9b8d0b5f57b6bb0e5046139c40ecb5c4948154a8.zip |
Fixes on L3GD20 local functions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9696 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex/ST')
-rw-r--r-- | os/ex/ST/l3gd20.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c index 60aeee8cf..49bd1f000 100644 --- a/os/ex/ST/l3gd20.c +++ b/os/ex/ST/l3gd20.c @@ -60,7 +60,7 @@ static void l3gd20SPIReadRegister(SPIDriver *spip, uint8_t reg, size_t n, uint8_t* b) { uint8_t cmd; - (n == 1) ? (cmd = reg) : (cmd = reg | L3GD20_RW | L3GD20_MS); + (n == 1) ? (cmd = reg | L3GD20_RW) : (cmd = reg | L3GD20_RW | L3GD20_MS); spiSelect(spip); spiSend(spip, 1, &cmd); spiReceive(spip, n, b); |