mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 17:03:35 +08:00
Improved comments
This commit is contained in:
@@ -351,7 +351,7 @@ L3GD20::probe()
|
|||||||
/* read dummy value to void to clear SPI statemachine on sensor */
|
/* read dummy value to void to clear SPI statemachine on sensor */
|
||||||
(void)read_reg(ADDR_WHO_AM_I);
|
(void)read_reg(ADDR_WHO_AM_I);
|
||||||
|
|
||||||
/* verify that the device is attached and functioning */
|
/* verify that the device is attached and functioning, accept L3GD20 and L3GD20H */
|
||||||
if (read_reg(ADDR_WHO_AM_I) == WHO_I_AM || read_reg(ADDR_WHO_AM_I) == WHO_I_AM_H)
|
if (read_reg(ADDR_WHO_AM_I) == WHO_I_AM || read_reg(ADDR_WHO_AM_I) == WHO_I_AM_H)
|
||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user