cvbxcvxcv
Revision 10:220ab90b446d, committed 2019-08-27
- Comitter:
- dendanny
- Date:
- Tue Aug 27 14:44:35 2019 +0000
- Parent:
- 8:118f07a02abc
- Commit message:
- pff
Changed in this revision
Lis2dh12.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Lis2dh12.cpp Mon Jul 22 10:09:40 2019 +0000 +++ b/Lis2dh12.cpp Tue Aug 27 14:44:35 2019 +0000 @@ -78,6 +78,7 @@ int16_t Lis2dh12::readXAxis(){ int16_t rawData; char tempData; +/* // Make sure new data is ready do{ readFromReg((char)STATUS, (uint8_t*)&tempData, 1); @@ -85,8 +86,9 @@ do{ readFromReg((char)STATUS, (uint8_t*)&tempData, 1); }while(!(tempData & 0x80)); +*/ + // Same data have been overwritten - readFromReg((char)OUT_X_H, (uint8_t*)&tempData, 1); rawData = (int8_t)tempData << 8; // readFromReg((char)OUT_X_L, (uint8_t*)&rawData, 1);