aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/drv/arduino
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 12:09:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 12:09:15 +0200
commit18e5d93da8fdf6dd97c9e2d090ae2648d85cb851 (patch)
treeec4935b8682ab878ecbe0c41afa96cacf9b5f53c /lib/pbdrv/drv/arduino
parent208dee5a3cf9eea84c5e26ef5cfe3abdd2e2a2f8 (diff)
fix client show all messages
Diffstat (limited to 'lib/pbdrv/drv/arduino')
-rw-r--r--lib/pbdrv/drv/arduino/mod.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pbdrv/drv/arduino/mod.cpp b/lib/pbdrv/drv/arduino/mod.cpp
index c381077..581b80a 100644
--- a/lib/pbdrv/drv/arduino/mod.cpp
+++ b/lib/pbdrv/drv/arduino/mod.cpp
@@ -48,6 +48,8 @@ static void pb_setup() {
* RP2040.
*/
__weak void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz) {
+ if (pb_hook_i2c_send(addr, buf, sz)) return;
+
vTaskDelay(10 / portTICK_PERIOD_MS); // prevent bus collisions
Wire.beginTransmission((int) addr);
Wire.write(buf, sz);