fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH

This commit is contained in:
Daniel Agar
2018-04-09 01:49:35 -04:00
parent 735c5544ae
commit 45eb9cb518
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -39,4 +39,4 @@
* @author Lorenz Meier <lorenz@px4.io>
*/
#pragma once
#define PX4IO_MAX_MIXER_LENGHT 230
#define PX4IO_MAX_MIXER_LENGTH 230
+3 -3
View File
@@ -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;
}