diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-26 11:28:24 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-26 11:28:24 +0200 |
commit | cad919018ed72005d2bc110247087201b0dea7ab (patch) | |
tree | 69857b1111fb3e5cb4f5a826985338f39aaec449 /client/cmd.cpp | |
parent | c3491119759462aeb3eed4b39aa34f6f98ab8a4f (diff) |
fix silly typo
Diffstat (limited to 'client/cmd.cpp')
-rw-r--r-- | client/cmd.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/cmd.cpp b/client/cmd.cpp index 78a6c3c..a098a14 100644 --- a/client/cmd.cpp +++ b/client/cmd.cpp @@ -5,7 +5,6 @@ #include "cmd.h" #include "sock.h" #include "parse.h" -#include "xxd.h" char* consume_token(char* input, const char* ifs) { strtok(input, ifs); @@ -56,11 +55,8 @@ 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); + printf("sending char data[%lu = 0x%02lx] to 0x%02x\n", data_size, data_size, addr); + i2c_send(addr, data, data_size); free(data); } |