possible fix for gyro hang. put i2c end transmission command in reset interrupt.