The unified diff between revisions [056a532c..] and [bfc9e27f..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'mpu6050.c'
# # old_revision [056a532c92301bcb224e1f786c5f6720e8acf3eb] # new_revision [bfc9e27f5c40da31ae4269394aaf0545e5856a70] # # patch "mpu6050.c" # from [9459051539738c013ae40e90c65e2936d93fc2bf] # to [22e024b9fe9133294e037dcd018832faa2d442bf] # ============================================================ --- mpu6050.c 9459051539738c013ae40e90c65e2936d93fc2bf +++ mpu6050.c 22e024b9fe9133294e037dcd018832faa2d442bf @@ -57,14 +57,24 @@ unsigned char mpu6050_accel_init_command unsigned char mpu6050_init_command[] = {0x6B, 0x01}; unsigned char mpu6050_accel_init_command[] = {0x1c, (AFS_SEL<<3)}; +unsigned char mpu6050_bypass_init_command[] = {0x37, 0x02}; +struct i2c_transaction mpu6050_bypass_init_transaction = { + (0x68 << 1) + 0, /* write */ + 2, + mpu6050_bypass_init_command, + &mpu6050_result, + EVENT_MPU6050_I2C_COMPLETE, + NULL +}; + struct i2c_transaction mpu6050_accel_init_transaction = { (0x68 << 1) + 0, /* write */ 2, mpu6050_accel_init_command, &mpu6050_result, EVENT_MPU6050_I2C_COMPLETE, - NULL + &mpu6050_bypass_init_transaction }; struct i2c_transaction mpu6050_init_transaction = {