mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 12:10:34 +08:00
lsm303d: zero-fill register reads
This commit is contained in:
committed by
Lorenz Meier
parent
ea33a19c8f
commit
fe4b95f9d5
@@ -1123,6 +1123,7 @@ LSM303D::read_reg(unsigned reg)
|
||||
uint8_t cmd[2];
|
||||
|
||||
cmd[0] = reg | DIR_READ;
|
||||
cmd[1] = 0;
|
||||
|
||||
transfer(cmd, cmd, sizeof(cmd));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user