Updated identification code per the datasheet

This commit is contained in:
Sean Kovacs 2024-01-17 19:46:54 -05:00 committed by Andrew Tridgell
parent ad7b8b001b
commit 72804196b1

View File

@ -106,6 +106,7 @@ bool AP_Baro_ICP201XX::init()
uint8_t id = 0xFF; uint8_t id = 0xFF;
uint8_t ver = 0xFF; uint8_t ver = 0xFF;
read_reg(REG_DEVICE_ID, &id); read_reg(REG_DEVICE_ID, &id);
read_reg(REG_DEVICE_ID, &id);
read_reg(REG_VERSION, &ver); read_reg(REG_VERSION, &ver);
if (id != ICP201XX_ID) { if (id != ICP201XX_ID) {