aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-19 10:40:55 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-19 10:40:55 +0200
commita50bbbfaf78ebaad9106e32208bd41cdc84843cb (patch)
tree3769bc17692c46f1da00aa45dbf93112f0ca745a /main
parentcc9b3beb1e82449e34dc3d7052395607fe12b47f (diff)
parentae5dd8e93411e01b087a840d33b0c970cac4a523 (diff)
merge `master` into `wip/pbdrv`
Diffstat (limited to 'main')
-rw-r--r--main/i2c.h3
-rw-r--r--main/sock.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/main/i2c.h b/main/i2c.h
index dcc3997..d1173c8 100644
--- a/main/i2c.h
+++ b/main/i2c.h
@@ -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;