reset and hw check code for the mpu9150