Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Pymavlink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Avionics
Software Development
MAVLink
Pymavlink
Commits
24bd922a
Commit
24bd922a
authored
3 years ago
by
Hamish Willee
Committed by
Peter Barker
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace def/undef of MAVLINK_THIS_XML_HASH with MAVLINK_FILENAME_XML_HASH
parent
d35da269
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/mavgen_c.py
+2
-5
2 additions, 5 deletions
generator/mavgen_c.py
with
2 additions
and
5 deletions
generator/mavgen_c.py
+
2
−
5
View file @
24bd922a
...
...
@@ -94,8 +94,7 @@ def generate_main_h(directory, xml):
#error Wrong include order: MAVLINK_${basename_upper}.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#undef MAVLINK_THIS_XML_HASH
#define MAVLINK_THIS_XML_HASH ${xml_hash}
#define MAVLINK_${basename_upper}_XML_HASH ${xml_hash}
#ifdef __cplusplus
extern
"
C
"
{
...
...
@@ -148,10 +147,8 @@ ${{message:#include "./mavlink_msg_${name_lower}.h"
${{include_list:#include
"
../${base}/${base}.h
"
}}
#undef MAVLINK_THIS_XML_HASH
#define MAVLINK_THIS_XML_HASH ${xml_hash}
#if MAVLINK_
THIS
_XML_HASH == MAVLINK_PRIMARY_XML_HASH
#if MAVLINK_
${basename_upper}
_XML_HASH == MAVLINK_PRIMARY_XML_HASH
# define MAVLINK_MESSAGE_INFO {${message_info_array}}
# define MAVLINK_MESSAGE_NAMES {${message_name_array}}
# if MAVLINK_COMMAND_24BIT
...
...
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