aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-send.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 13:30:45 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 13:30:45 +0200
commit20f442e5f5aa6a4fcf07f65e2f446a3c0ff8e4f2 (patch)
tree99f2422681eaa34a6f21b54d86e67115c291d5ce /lib/pbdrv/pb-send.c
parentdbe08a8cd3d29cee7ba1adae4841c0a831784f31 (diff)
WIP freertos + Arduino workaround
Diffstat (limited to 'lib/pbdrv/pb-send.c')
-rw-r--r--lib/pbdrv/pb-send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-send.c b/lib/pbdrv/pb-send.c
index f0d5004..b70af3a 100644
--- a/lib/pbdrv/pb-send.c
+++ b/lib/pbdrv/pb-send.c
@@ -2,6 +2,10 @@
#include "pb-mod.h"
#include "pb-msg.h"
+void pb_send_reply(pb_msg_t * msg, pb_buf_t * reply) {
+ return pb_i2c_send(msg->sender, (uint8_t *) reply->data, reply->size);
+}
+
pb_buf_t pb_send_read_req(uint8_t propid) {
pb_cmd_prop_t cmd = {
.propid = propid,