diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-19 10:40:55 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-19 10:40:55 +0200 |
commit | a50bbbfaf78ebaad9106e32208bd41cdc84843cb (patch) | |
tree | 3769bc17692c46f1da00aa45dbf93112f0ca745a /main | |
parent | cc9b3beb1e82449e34dc3d7052395607fe12b47f (diff) | |
parent | ae5dd8e93411e01b087a840d33b0c970cac4a523 (diff) |
merge `master` into `wip/pbdrv`
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; |