l3gd20: add l3gd20h chipid to ctor check as well

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-08-10 12:59:54 -06:00
parent 06ecae7212
commit e689dc175c
2 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,8 @@
// if SDO tied to GND
#define L3GD20_DEFAULT_I2C_ADDR 0x6a
#define L3GD20_DEFAULT_CHIP_ID 0xd4
// the 'H' variant uses a different chip id
#define L3GD20H_DEFAULT_CHIP_ID 0xd7
namespace upm
{