aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
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;