Skip to content
Snippets Groups Projects
Unverified Commit 10cd74e7 authored by Jake Drahos's avatar Jake Drahos
Browse files

Added missing commands

parent 0a0dabdd
Branches new-commands
No related tags found
No related merge requests found
......@@ -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
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment