mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Updated identification code per the datasheet
This commit is contained in:
parent
ad7b8b001b
commit
72804196b1
@ -106,6 +106,7 @@ bool AP_Baro_ICP201XX::init()
|
||||
uint8_t id = 0xFF;
|
||||
uint8_t ver = 0xFF;
|
||||
read_reg(REG_DEVICE_ID, &id);
|
||||
read_reg(REG_DEVICE_ID, &id);
|
||||
read_reg(REG_VERSION, &ver);
|
||||
|
||||
if (id != ICP201XX_ID) {
|
||||
|
Loading…
Reference in New Issue
Block a user