We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b049ffd commit 5ef0daeCopy full SHA for 5ef0dae
src/mag/MagGizmoBMM150.h
@@ -25,7 +25,7 @@ class MagGizmoBMM150: public MagGizmo {
25
26
//configure sensor
27
BMM150_I2C *sensor = new BMM150_I2C(i2c, config->i2c_adr);
28
- if(!sensor->begin()) {
+ if(sensor->begin() != 0) {
29
Serial.printf("RDR: BMM150 init failed.\n");
30
delete sensor;
31
return nullptr;
0 commit comments