Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART_17-18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bbartels
MicroCART_17-18
Commits
10cd74e7
Unverified
Commit
10cd74e7
authored
8 years ago
by
Jake Drahos
Browse files
Options
Downloads
Patches
Plain Diff
Added missing commands
parent
0a0dabdd
Branches
new-commands
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
groundStation/src/backend/commands.c
+36
-0
36 additions, 0 deletions
groundStation/src/backend/commands.c
with
36 additions
and
0 deletions
groundStation/src/backend/commands.c
+
36
−
0
View file @
10cd74e7
...
...
@@ -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
}
}
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment