From 45eb9cb518cd027a43b87b7a29512d2c9ab1aee6 Mon Sep 17 00:00:00 2001
From: Daniel Agar <daniel@agar.ca>
Date: Mon, 9 Apr 2018 01:49:35 -0400
Subject: [PATCH] fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH

---
 src/modules/px4iofirmware/mixer.cpp | 2 +-
 src/modules/px4iofirmware/mixer.h   | 2 +-
 src/systemcmds/tests/test_mixer.cpp | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/px4iofirmware/mixer.cpp b/src/modules/px4iofirmware/mixer.cpp
index b874c8cac2..0c02c321da 100644
--- a/src/modules/px4iofirmware/mixer.cpp
+++ b/src/modules/px4iofirmware/mixer.cpp
@@ -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;
 
diff --git a/src/modules/px4iofirmware/mixer.h b/src/modules/px4iofirmware/mixer.h
index 62df8d9819..b0f63ca369 100644
--- a/src/modules/px4iofirmware/mixer.h
+++ b/src/modules/px4iofirmware/mixer.h
@@ -39,4 +39,4 @@
  * @author Lorenz Meier <lorenz@px4.io>
  */
 #pragma once
-#define PX4IO_MAX_MIXER_LENGHT		230
+#define PX4IO_MAX_MIXER_LENGTH		230
diff --git a/src/systemcmds/tests/test_mixer.cpp b/src/systemcmds/tests/test_mixer.cpp
index d3037e3276..5b0cf38a51 100644
--- a/src/systemcmds/tests/test_mixer.cpp
+++ b/src/systemcmds/tests/test_mixer.cpp
@@ -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;
 		}
 
-- 
GitLab