aboutsummaryrefslogtreecommitdiff
path: root/client/cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/cmd.cpp')
-rw-r--r--client/cmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/cmd.cpp b/client/cmd.cpp
index 1ec2cb8..78a6c3c 100644
--- a/client/cmd.cpp
+++ b/client/cmd.cpp
@@ -5,6 +5,7 @@
#include "cmd.h"
#include "sock.h"
#include "parse.h"
+#include "xxd.h"
char* consume_token(char* input, const char* ifs) {
strtok(input, ifs);
@@ -55,8 +56,11 @@ void cmd_send(char* addr_str) {
return;
}
+ printf("char data[%lu = 0x%02lx]:\n", data_size, data_size);
+ xxd(data, data_size);
+
// printf("(0x%02x) -> \"%.*s\"\n", addr, data_size, data);
- i2c_send(addr, data, data_size);
+ // i2c_send(addr, data, data_size);
free(data);
}