diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/i2c.h | 3 | ||||
-rw-r--r-- | main/sock.c | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -1,7 +1,4 @@ #pragma once -// https://github.com/raspberrypi/pico-examples/tree/master/i2c - -#define MAX_SLAVES 10 //! looking for slave addresses and requesting updates void bus_task(); diff --git a/main/sock.c b/main/sock.c index 112e754..33a6111 100644 --- a/main/sock.c +++ b/main/sock.c @@ -52,7 +52,7 @@ void recv_handler(struct netconn* conn, struct netbuf* buf) { char* data; uint16_t len; netbuf_data(buf, (void**)&data, &len); - + // continue early if more data is needed to complete message if (i2ctcp_read(&recv_msg, data, len) != 0) continue; |