Skip to content

Commit 94e4d99

Browse files
authored
Update platform.cpp
Signed-off-by: Carlo Parata <[email protected]>
1 parent e7fc034 commit 94e4d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ uint8_t VL53L8CX::WrMulti(
8989
i += current_write_size;
9090
if (size - i) {
9191

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

9595
}
9696
}

0 commit comments

Comments
 (0)