From 614f5b2a60bdc8d011fd3063669f7e174a24eb91 Mon Sep 17 00:00:00 2001 From: ThomasintAnker Date: Tue, 25 Jun 2024 13:47:53 +0200 Subject: a --- main/i2c.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'main') 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 == "") { + + } +} + -- cgit v1.2.3