Skip to content

Commit 8cfa78f

Browse files
committed
added endian support; move readReg/writeReg to new methods that manage the endian swaps and are much easlier to use (pretty too); Still need to verify operation and do this do the distance app
1 parent 66d41da commit 8cfa78f

File tree

3 files changed

+63
-203
lines changed

3 files changed

+63
-203
lines changed

src/sfTk/sfDevXM125Core.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ sfTkError_t sfDevXM125Core::begin(sfTkII2C *theBus)
3131
// Sets communication bus
3232
_theBus = theBus;
3333

34+
// set the byte order to BIG Endian - the sensor works with Big E
35+
_theBus->setByteOrder(sfTkByteOrder::BigEndian);
36+
3437
// return the value of ping
3538
return theBus->ping();
3639
}

0 commit comments

Comments
 (0)