aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-07 16:56:19 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-07 16:56:19 +0200
commit3f1e5a5c6a594601e597a43a125883d5e3c618c1 (patch)
tree510339a5c7c2c66d6451225f3843730d736559ee /lib
parentc7aa2916dce4cd3d82ac1be42c433d1ed66db69e (diff)
added pull-up resistors (code works, commit for safety)
Diffstat (limited to 'lib')
-rw-r--r--lib/pbdrv/drv/arduino/mod.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pbdrv/drv/arduino/mod.cpp b/lib/pbdrv/drv/arduino/mod.cpp
index 2113ba2..a522ff8 100644
--- a/lib/pbdrv/drv/arduino/mod.cpp
+++ b/lib/pbdrv/drv/arduino/mod.cpp
@@ -43,5 +43,8 @@ __weak void pbdrv_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz) {
if(retry == 0) break;
retry--;
} while (error);
+
+ if (error)
+ Serial.print(error, DEC);
}