diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-22 19:32:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-22 19:32:21 +0200 |
commit | 53d27ebf10225274a50dc4a7c2343d4efce55a8a (patch) | |
tree | bdf1a5d9b3900d86a999bc396e7815bd7372a549 /client/cmd.cpp | |
parent | db8906d54cd9afbc57f0b40a0d618335c552f704 (diff) |
clean up command handling
Diffstat (limited to 'client/cmd.cpp')
-rw-r--r-- | client/cmd.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/cmd.cpp b/client/cmd.cpp new file mode 100644 index 0000000..99a4dd6 --- /dev/null +++ b/client/cmd.cpp @@ -0,0 +1,15 @@ +#include <cstdlib> +#include <string.h> + +#include "cmd.h" +#include "sock.h" + +void cmd_exit(char*) { + exit(EXIT_SUCCESS); +} + +void cmd_test(char*) { + const char* data = "Hello world!"; + i2c_send(0x39, (char*) data, strlen(data)); +} + |