aboutsummaryrefslogtreecommitdiff
path: root/client/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/cmd.h')
-rw-r--r--client/cmd.h14
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]);