IMU Sensor stops updating values after SD Card activated

Sorry, I wasn't thinking clearly last night. I interpreted the IF blocks as WHILE loops.

Which line are you removing to make it work?

Also, showing your circuit might be useful.