I have a modified version of the compdcm_mpu9150 example code that mostly works but will sometimes hang for unknown reasons. I'm trying to figure out how to restart the MPU9150 when MPU9150Init or MPU9150DataRead receives an error. Unfortunately the compdcm_mpu9150 example code just goes into a permanent while loop. Any ideas for restarting the MPU9150 would be appreciated.