aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-mod.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 12:20:13 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 12:20:13 +0200
commitf594d070418a3b2be6e5c08068f969e8793315ba (patch)
tree33f450045708e794ecb01efb43e5cfce76c0bb38 /lib/pbdrv/pb-mod.c
parentdf5f2cc3ca34c47302fad4af2a4e614e000e4c51 (diff)
parent1c33371af4fdc59387fe523fab09634bdea54acc (diff)
Merge branch 'master' of github.com:lonkaars/puzzelbox into prot/smoketest
Diffstat (limited to 'lib/pbdrv/pb-mod.c')
-rw-r--r--lib/pbdrv/pb-mod.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-mod.c b/lib/pbdrv/pb-mod.c
index c27194e..6b23b04 100644
--- a/lib/pbdrv/pb-mod.c
+++ b/lib/pbdrv/pb-mod.c
@@ -18,7 +18,10 @@ __weak void pb_hook_mod_state_write(pb_global_state_t state) {
_global_state = state;
}
+__weak void pb_hook_i2c_recv(const uint8_t * data, size_t sz) { }
__weak void pb_i2c_recv(const uint8_t * data, size_t sz) {
+ pb_hook_i2c_recv(data, sz);
+
pb_buf_t buf = {
.data = (char *) data,
.size = sz,
@@ -32,3 +35,5 @@ __weak void pb_i2c_recv(const uint8_t * data, size_t sz) {
pb_msg_free(msg);
}
+__weak void pb_hook_i2c_send(i2c_addr_t i2c_addr, const uint8_t * data, size_t sz) { }
+