diff --git a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md index 8db4b65..5cddfc1 100644 --- a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md +++ b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md @@ -189,10 +189,10 @@ void setup() { void loop() { // IMPORTANT - call as frequently as possible // update the sensor values - sensor.update(); + as5600.update(); // display the angle and the angular velocity to the terminal Serial.print(as5600.getAngle()); Serial.print("\t"); Serial.println(as5600.getVelocity()); } -``` \ No newline at end of file +```