Works with 8g
Fork of MMA8452 by
Diff: MMA8452.cpp
- Revision:
- 21:a92a632a0cc7
- Parent:
- 20:d55e9d7eb17e
- Child:
- 22:0d00605bf830
--- a/MMA8452.cpp Fri Mar 07 11:55:30 2014 +0000 +++ b/MMA8452.cpp Fri Mar 07 14:53:40 2014 +0000 @@ -127,9 +127,9 @@ ); } -char MMA8452::getMaskedRegister(int reg, char mask) { +char MMA8452::getMaskedRegister(int addr, char mask) { char rval = 0; - if(readRegister(reg,&rval)) { + if(readRegister(addr,&rval)) { return 0; } return (rval&mask);