From e83274c0f7941f89fcb18c9715dc84c75d4e42e9 Mon Sep 17 00:00:00 2001 From: Jake Drahos <j@kedrahos.com> Date: Tue, 24 Jan 2017 11:15:52 -0600 Subject: [PATCH] Added missing commands --- groundStation/src/backend/commands.c | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/groundStation/src/backend/commands.c b/groundStation/src/backend/commands.c index 2a2bb818b..d8ce39f9f 100644 --- a/groundStation/src/backend/commands.c +++ b/groundStation/src/backend/commands.c @@ -48,7 +48,10 @@ /* Misc. callbacks */ command_cb cb_debug __attribute__((weak, alias("cb_default"))); +command_cb cb_packetlog __attribute__((weak, alias("cb_default"))); +command_cb cb_getpacketlogs __attribute__((weak, alias("cb_default"))); command_cb cb_update __attribute__((weak, alias("cb_default"))); +command_cb cb_beginupdate __attribute__((weak, alias("cb_default"))); command_cb cb_log __attribute__((weak, alias("cb_default"))); command_cb cb_response __attribute__((weak, alias("cb_default"))); @@ -168,6 +171,28 @@ struct MessageType MessageTypes[MAX_TYPE] = stringType, // Function pointer &cb_debug + }, + // NONE subtype + { + // ID + 0x01, + // Command text + "packetlog", + // Type of the command data + stringType, + // Function pointer + &cb_packetlog + }, + // NONE subtype + { + // ID + 0x02, + // Command text + "getpacketlogs", + // Type of the command data + stringType, + // Function pointer + &cb_getpacketlogs } } }, @@ -1208,6 +1233,17 @@ struct MessageType MessageTypes[MAX_TYPE] = stringType, // Function pointer &cb_update + }, + // BEGIN update + { + // ID + 0x01, + // Command text + "beginupdate", + // Type of the command data + stringType, + // Function pointer + &cb_beginupdate } } }, -- GitLab