aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomasintAnker <thomasintanker1@gmail.com>2024-06-25 13:47:53 +0200
committerThomasintAnker <thomasintanker1@gmail.com>2024-06-25 13:47:53 +0200
commit614f5b2a60bdc8d011fd3063669f7e174a24eb91 (patch)
tree0450c87657f07a531c4d552f91bddd2210aa2bf8
parentf3e72c6e339eedc4ffac3a2f32cf6cbae7305ff0 (diff)
a
-rw-r--r--main/i2c.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/i2c.c b/main/i2c.c
index 19027b3..c499727 100644
--- a/main/i2c.c
+++ b/main/i2c.c
@@ -130,3 +130,25 @@ void pb_hook_mod_state_write(pb_global_state_t state) {
_global_state = state;
}
+void pb_route_cmd_prop_req(pb_msg_t * msg) {
+ // send modules using buf
+ pb_cmd_prop_t cmd = msg->cmd;
+
+ pb_buf_t buf;
+
+ if(cmd == "PROPID_AJHDKADLHL") {
+ pb_send_reply(msg,buf);
+ }
+
+ pb_buf_free(buf);
+}
+
+void pb_route_cmd_prop_set(pb_msg_t * msg) {
+ // scan bus again.
+ pb_cmd_prop_t cmd = msg->cmd;
+
+ if(cmd == "") {
+
+ }
+}
+