Skip to content

Commit d9e6a6b

Browse files
authored
Update platform.cpp
Signed-off-by: Carlo Parata <[email protected]>
1 parent 886ed9a commit d9e6a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ uint8_t VL53L7CX::WrMulti(
8383
i += current_write_size;
8484
if (size - i) {
8585

86-
// Flush buffer but do not send stop bit so we can keep going
87-
p_platform->dev_i2c->endTransmission(false);
86+
// Flush buffer and send stop bit so we have compatibility also with ESP32 platforms
87+
p_platform->dev_i2c->endTransmission(true);
8888

8989
}
9090
}

0 commit comments

Comments
 (0)