Skip to content

Commit f242b29

Browse files
setupSensor() function created but never called
Example: `lsm9doftest` - `setupSensor()` function is created but never called in the main `setup()` - Adds `setupSensor()` with a delay of 1 second in `setup()`
1 parent 5852be5 commit f242b29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/lsm9doftest/lsm9doftest.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ void setup()
4949
Serial.println("Found LSM9DS0 9DOF");
5050
Serial.println("");
5151
Serial.println("");
52+
Serial.println("Setting up LSM9DS0 9DOF");
53+
setupSensor();
54+
delay(1);
5255
}
5356

5457
void loop()
@@ -66,4 +69,4 @@ void loop()
6669
Serial.print("Z: "); Serial.println((int)lsm.gyroData.z); Serial.println(" ");
6770
Serial.print("Temp: "); Serial.print((int)lsm.temperature); Serial.println(" ");
6871
delay(200);
69-
}
72+
}

0 commit comments

Comments
 (0)