diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-28 11:53:06 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-28 11:53:06 +0200 |
commit | b6abd84b9930ab398f0402058e56a480e80799cc (patch) | |
tree | 28644973e7ffadcc3306b1ff28df9340f28404e7 /client/cmd.h | |
parent | 25a4f905a3f93645aee79157f30867b287871163 (diff) |
update readmes
Diffstat (limited to 'client/cmd.h')
-rw-r--r-- | client/cmd.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/cmd.h b/client/cmd.h index 30bcbeb..932f3a2 100644 --- a/client/cmd.h +++ b/client/cmd.h @@ -14,10 +14,10 @@ struct cmd { cmd_fn_t cmd_exit; cmd_fn_t cmd_test; cmd_fn_t cmd_help; -cmd_fn_t cmd_send; cmd_fn_t cmd_status; cmd_fn_t cmd_reset; cmd_fn_t cmd_ls; +cmd_fn_t cmd_send; static const struct cmd cmds[] = { { @@ -36,11 +36,6 @@ static const struct cmd cmds[] = { .info = "show this help", }, { - .handle = cmd_send, - .name = "send", - .info = "[debug] send raw message", - }, - { .handle = cmd_status, .name = "status", .info = "show global puzzle box state (main controller state)", @@ -55,6 +50,13 @@ static const struct cmd cmds[] = { .name = "ls", .info = "list connected puzzle modules", }, +#ifdef DEBUG + { + .handle = cmd_send, + .name = "send", + .info = "[debug] send raw message", + }, +#endif }; static const size_t cmds_length = sizeof(cmds) / sizeof(cmds[0]); |