Skip to content
Snippets Groups Projects
Commit 45eb9cb5 authored by Daniel Agar's avatar Daniel Agar
Browse files

fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH

parent 735c5544
No related branches found
No related tags found
No related merge requests found
......@@ -492,7 +492,7 @@ mixer_callback(uintptr_t handle,
* not loaded faithfully.
*/
static char mixer_text[PX4IO_MAX_MIXER_LENGHT]; /* large enough for one mixer */
static char mixer_text[PX4IO_MAX_MIXER_LENGTH]; /* large enough for one mixer */
static unsigned mixer_text_length = 0;
static bool mixer_update_pending = false;
......
......@@ -39,4 +39,4 @@
* @author Lorenz Meier <lorenz@px4.io>
*/
#pragma once
#define PX4IO_MAX_MIXER_LENGHT 230
#define PX4IO_MAX_MIXER_LENGTH 230
......@@ -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_LENGHT]; /* large enough for one mixer */
char mixer_text[PX4IO_MAX_MIXER_LENGTH]; /* 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_LENGHT too small? (curr len: %d)", filename,
PX4IO_MAX_MIXER_LENGHT);
PX4_ERR("Mixer text length overflow for file: %s. Is PX4IO_MAX_MIXER_LENGTH too small? (curr len: %d)", filename,
PX4IO_MAX_MIXER_LENGTH);
return false;
}
......
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