Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
OpenSource
Baitboat
Commits
a6250ee0
Commit
a6250ee0
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
GCS_MAVLink: fixed const in buffer based send call
parent
e8ef484e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
+2
-1
2 additions, 1 deletion
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
with
2 additions
and
1 deletion
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
+
2
−
1
View file @
a6250ee0
...
@@ -117,6 +117,7 @@ MAVLINK_HELPER void _mav_finalize_message_chan_send(mavlink_channel_t chan, uint
...
@@ -117,6 +117,7 @@ MAVLINK_HELPER void _mav_finalize_message_chan_send(mavlink_channel_t chan, uint
buf
[
4
]
=
mavlink_system
.
compid
;
buf
[
4
]
=
mavlink_system
.
compid
;
buf
[
5
]
=
msgid
;
buf
[
5
]
=
msgid
;
status
->
current_tx_seq
++
;
status
->
current_tx_seq
++
;
checksum
=
crc_calculate
((
uint8_t
*
)
&
buf
[
1
],
MAVLINK_CORE_HEADER_LEN
);
checksum
=
crc_calculate
((
uint8_t
*
)
&
buf
[
1
],
MAVLINK_CORE_HEADER_LEN
);
crc_accumulate_buffer
(
&
checksum
,
packet
,
length
);
crc_accumulate_buffer
(
&
checksum
,
packet
,
length
);
#if MAVLINK_CRC_EXTRA
#if MAVLINK_CRC_EXTRA
...
@@ -511,7 +512,7 @@ MAVLINK_HELPER void _mavlink_send_uart(mavlink_channel_t chan, const char *buf,
...
@@ -511,7 +512,7 @@ MAVLINK_HELPER void _mavlink_send_uart(mavlink_channel_t chan, const char *buf,
#ifdef MAVLINK_SEND_UART_BYTES
#ifdef MAVLINK_SEND_UART_BYTES
/* this is the more efficient approach, if the platform
/* this is the more efficient approach, if the platform
defines it */
defines it */
MAVLINK_SEND_UART_BYTES
(
chan
,
(
uint8_t
*
)
buf
,
len
);
MAVLINK_SEND_UART_BYTES
(
chan
,
(
const
uint8_t
*
)
buf
,
len
);
#else
#else
/* fallback to one byte at a time */
/* fallback to one byte at a time */
uint16_t
i
;
uint16_t
i
;
...
...
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