Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
45eb9cb5
Commit
45eb9cb5
authored
6 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH
parent
735c5544
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/modules/px4iofirmware/mixer.cpp
+1
-1
1 addition, 1 deletion
src/modules/px4iofirmware/mixer.cpp
src/modules/px4iofirmware/mixer.h
+1
-1
1 addition, 1 deletion
src/modules/px4iofirmware/mixer.h
src/systemcmds/tests/test_mixer.cpp
+3
-3
3 additions, 3 deletions
src/systemcmds/tests/test_mixer.cpp
with
5 additions
and
5 deletions
src/modules/px4iofirmware/mixer.cpp
+
1
−
1
View file @
45eb9cb5
...
...
@@ -492,7 +492,7 @@ mixer_callback(uintptr_t handle,
* not loaded faithfully.
*/
static
char
mixer_text
[
PX4IO_MAX_MIXER_LENG
H
T
];
/* large enough for one mixer */
static
char
mixer_text
[
PX4IO_MAX_MIXER_LENGT
H
];
/* large enough for one mixer */
static
unsigned
mixer_text_length
=
0
;
static
bool
mixer_update_pending
=
false
;
...
...
This diff is collapsed.
Click to expand it.
src/modules/px4iofirmware/mixer.h
+
1
−
1
View file @
45eb9cb5
...
...
@@ -39,4 +39,4 @@
* @author Lorenz Meier <lorenz@px4.io>
*/
#pragma once
#define PX4IO_MAX_MIXER_LENG
H
T 230
#define PX4IO_MAX_MIXER_LENGT
H
230
This diff is collapsed.
Click to expand it.
src/systemcmds/tests/test_mixer.cpp
+
3
−
3
View file @
45eb9cb5
...
...
@@ -294,7 +294,7 @@ bool MixerTest::load_mixer(const char *filename, const char *buf, unsigned loade
/* reset, load in chunks */
mixer_group
.
reset
();
char
mixer_text
[
PX4IO_MAX_MIXER_LENG
H
T
];
/* large enough for one mixer */
char
mixer_text
[
PX4IO_MAX_MIXER_LENGT
H
];
/* large enough for one mixer */
unsigned
mixer_text_length
=
0
;
unsigned
transmitted
=
0
;
...
...
@@ -306,8 +306,8 @@ bool MixerTest::load_mixer(const char *filename, const char *buf, unsigned loade
/* check for overflow - this would be really fatal */
if
((
mixer_text_length
+
text_length
+
1
)
>
sizeof
(
mixer_text
))
{
PX4_ERR
(
"Mixer text length overflow for file: %s. Is PX4IO_MAX_MIXER_LENG
H
T too small? (curr len: %d)"
,
filename
,
PX4IO_MAX_MIXER_LENG
H
T
);
PX4_ERR
(
"Mixer text length overflow for file: %s. Is PX4IO_MAX_MIXER_LENGT
H
too small? (curr len: %d)"
,
filename
,
PX4IO_MAX_MIXER_LENGT
H
);
return
false
;
}
...
...
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