MPU6050 simple library
Dependents: MPU6050_test Drone MPU6050_test acelerometro ... more
Revision 16:002d3ac85242, committed 2019-08-19
- Comitter:
- ritarosakai
- Date:
- Mon Aug 19 08:57:14 2019 +0000
- Parent:
- 15:6036740714ad
- Commit message:
- Remove __disable_irq
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6036740714ad -r 002d3ac85242 MPU6050.cpp --- a/MPU6050.cpp Thu Aug 15 03:45:32 2019 +0000 +++ b/MPU6050.cpp Mon Aug 19 08:57:14 2019 +0000 @@ -69,12 +69,10 @@ { char data = addr_reg; bool result = false; - __disable_irq(); if ((_MPU6050.write(addr_i2c, &data, 1) == 0) && (_MPU6050.read(addr_i2c, &data, 1) == 0)) { *v = data; result = true; } - __enable_irq(); return result; }