fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH

This commit is contained in:
Daniel Agar
2018-04-09 02:23:26 -04:00
parent 735c5544ae
commit 45eb9cb518
3 changed files with 5 additions and 5 deletions
+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;
}