asukiaaa / MPU9250_asukiaaa

A library for arduino to read value of MPU9250.
MIT License
89 stars 30 forks source link

Fix for readId #21

Closed kevinlhoste closed 3 years ago

kevinlhoste commented 3 years ago

adding beginWireIfNull(); in readId so we can check if sensor is working before starting sensor Before this fix the readId return something only when it is called after mySensor.beginAcc() , mySensor.beginGyro(); or mySensor.beginMag();

asukiaaa commented 3 years ago

Thank you for crating PR. This commit is included in version 1.5.11.

By the way, I'm happy if you use same indent level as other lines for next time. https://github.com/asukiaaa/MPU9250_asukiaaa/commit/aa5730fcae6f29c3d846b513a8dc69e512e4db0b