Skip to content

Commit 2eae22e

Browse files
committed
Add missing case for when chip ID is incorrect
1 parent 6ab8023 commit 2eae22e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utilities/BMM150-Sensor-API/bmm150.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ int8_t bmm150_init(struct bmm150_dev *dev)
593593

594594
/* Function to update trim values */
595595
rslt = read_trim_registers(dev);
596+
} else {
597+
rslt = BMM150_E_DEV_NOT_FOUND;
596598
}
597599
}
598600
}

0 commit comments

Comments
 (0)