aboutsummaryrefslogtreecommitdiff
path: root/client/i2c.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 11:16:59 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-25 11:16:59 +0200
commit208dee5a3cf9eea84c5e26ef5cfe3abdd2e2a2f8 (patch)
treea991c7950b30ed47b570867f58217809553d0c54 /client/i2c.cpp
parent34875e734907e90c2e254fcd79d66dab0b491e56 (diff)
fix some more silly bugs in the client
Diffstat (limited to 'client/i2c.cpp')
-rw-r--r--client/i2c.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/i2c.cpp b/client/i2c.cpp
index 3655191..2a5e67a 100644
--- a/client/i2c.cpp
+++ b/client/i2c.cpp
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include "i2ctcpv1.h"
+#include "rl.h"
#include "sock.h"
#include "xxd.h"
@@ -37,8 +38,10 @@ static void i2c_handle_cmd_read(uint16_t, const char *, size_t);
void i2c_recv(const char * data, size_t data_size) {
if (i2c_dump_recv) {
+ _rl_printf_start();
printf("[%s] data(0x%02lx):\n", __FUNCTION__, data_size);
xxd(data, data_size);
+ _rl_printf_stop();
}
}