Seeed-Studio / Seeed_Arduino_LSM6DS3

Grove sensor 6 Axis Accelerometer&Gyroscope using LSM6DS3
Other
53 stars 23 forks source link

Issue with readFloatAccel #11

Closed f-p-b closed 1 year ago

f-p-b commented 1 year ago

I am getting the unexpected behavior that when I call myIMU.readFloatAccelX(); myIMU.readFloatAccelY(); myIMU.readFloatAccelZ(); in a function called from within setup() or loop(), and don't directly call them from setup() or loop(), the code does not run. I am using an arduino MKR zero board. Is this a known issue? Does perhaps someone know the cause?

f-p-b commented 1 year ago

My bad, it turned out I was by accident calling a function that called a function using myIMU.readFloatAccelX() before having called myIMU.begin() in setup().