Skip to content

Commit 6fb6a97

Browse files
committed
switched to overloaded versions of the functions
1 parent 49fb9ec commit 6fb6a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sfeBmv080.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern "C"
7070
if(theBus->type() == kBusTypeI2C)
7171
header = header << 1; // I2C specific shift
7272

73-
sfeTkError_t rc = theBus->readRegister16Region16(header, payload, payload_length, nRead);
73+
sfeTkError_t rc = theBus->readRegister(header, payload, payload_length, nRead);
7474

7575
if (rc != kSTkErrOk || nRead != payload_length)
7676
return E_COMBRIDGE_ERROR_READ;
@@ -92,7 +92,7 @@ extern "C"
9292
if(theBus->type() == kBusTypeI2C) // I2C specific shift
9393
header = header << 1;
9494

95-
sfeTkError_t rc = theBus->writeRegister16Region16(header, payload, payload_length);
95+
sfeTkError_t rc = theBus->writeRegister(header, payload, payload_length);
9696

9797
// okay, not okay?
9898
return rc == kSTkErrOk ? E_COMBRIDGE_OK : E_COMBRIDGE_ERROR_WRITE;

0 commit comments

Comments
 (0)