diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:20:13 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:20:13 +0200 |
commit | f594d070418a3b2be6e5c08068f969e8793315ba (patch) | |
tree | 33f450045708e794ecb01efb43e5cfce76c0bb38 /main | |
parent | df5f2cc3ca34c47302fad4af2a4e614e000e4c51 (diff) | |
parent | 1c33371af4fdc59387fe523fab09634bdea54acc (diff) |
Merge branch 'master' of github.com:lonkaars/puzzelbox into prot/smoketest
Diffstat (limited to 'main')
-rw-r--r-- | main/i2c.c | 1 | ||||
-rw-r--r-- | main/sock.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -122,3 +122,4 @@ pb_global_state_t pb_hook_mod_state_read() { void pb_hook_mod_state_write(pb_global_state_t state) { _global_state = state; } + diff --git a/main/sock.c b/main/sock.c index 33a6111..07db6af 100644 --- a/main/sock.c +++ b/main/sock.c @@ -14,7 +14,7 @@ struct netconn* current_connection = NULL; i2ctcp_msg_t recv_msg; -void i2c_send(uint16_t addr, const char * data, size_t data_size) { +void pb_hook_i2c_send(i2c_addr_t addr, const uint8_t * data, size_t data_size) { if (current_connection == NULL) return; i2ctcp_msg_t send_msg = { @@ -35,7 +35,7 @@ void i2c_send(uint16_t addr, const char * data, size_t data_size) { free(buf); } -static void i2c_recv_fwd(uint16_t addr, const uint8_t * data, size_t data_size) { +static void i2c_recv_fwd(i2c_addr_t addr, const uint8_t * data, size_t data_size) { if (addr == PB_MOD_ADDR) { // addressed to me = act as recieved pb_i2c_recv(data, data_size); |