diff --git a/groundStation/src/backend/commands.c b/groundStation/src/backend/commands.c index 2a2bb818b4601b434327fb71b5f2bd78a2cf99e7..d8ce39f9f1148515eeb531accedd0f3ea02c029a 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 } } },