diff --git a/companion/releasenotes.txt b/companion/releasenotes.txt
index f591f9256..d402dfc87 100644
--- a/companion/releasenotes.txt
+++ b/companion/releasenotes.txt
@@ -1,3 +1,11 @@
+
Version 2.1.2 /
+
+- Fixed: Lua model scripts outputs not working in a simulator (#2684)
+
+
+
+
+
Version 2.1.1 / 2015-08-06
- Vario source and center silent options were not saved(#2476)
diff --git a/companion/src/firmwares/opentx/simulator/opentxsimulator.cpp b/companion/src/firmwares/opentx/simulator/opentxsimulator.cpp
index 8a9fa5ccd..49421aa71 100644
--- a/companion/src/firmwares/opentx/simulator/opentxsimulator.cpp
+++ b/companion/src/firmwares/opentx/simulator/opentxsimulator.cpp
@@ -41,14 +41,15 @@
#define GRAPHICS
#define CURVES
#if defined(PCBTARANIS)
-#define RTCLOCK
-#define XCURVES
-#define VIRTUALINPUTS
-#define LUA
-#define LUA_MODEL_SCRIPTS
+ #define RTCLOCK
+ #define XCURVES
+ #define VIRTUALINPUTS
+ #define LUA
+ #define LUA_MODEL_SCRIPTS
+ #define LUAINPUTS
#else
-#define BUZZER
-#define TEMPLATES
+ #define BUZZER
+ #define TEMPLATES
#endif
#define BOLD_FONT
#define HAPTIC
@@ -61,17 +62,17 @@
#endif
#if defined(PCBSKY9X) && !defined(REVX)
-#define ROTARY_ENCODERS 1
+ #define ROTARY_ENCODERS 1
#elif defined(PCBGRUVIN9X)
-#define ROTARY_ENCODERS 2
+ #define ROTARY_ENCODERS 2
#endif
#if defined(CPUARM)
-#define FRSKY_SPORT
+ #define FRSKY_SPORT
#endif
#if defined (PCBTARANIS)
-#define MIXERS_MONITOR
+ #define MIXERS_MONITOR
#endif
#undef min
diff --git a/radio/src/mixer.cpp b/radio/src/mixer.cpp
index fcf93f5f7..aefdb9732 100644
--- a/radio/src/mixer.cpp
+++ b/radio/src/mixer.cpp
@@ -260,7 +260,11 @@ getvalue_t getValue(mixsrc_t i)
}
#endif
+#if defined(LUAINPUTS)
else if (i<=MIXSRC_LAST_POT) return calibratedStick[i-MIXSRC_Rud];
+#else
+ else if (i>=MIXSRC_FIRST_STICK && i<=MIXSRC_LAST_POT) return calibratedStick[i-MIXSRC_Rud];
+#endif
#if defined(PCBGRUVIN9X) || defined(PCBMEGA2560) || defined(ROTARY_ENCODERS)
else if (i<=MIXSRC_LAST_ROTARY_ENCODER) return getRotaryEncoder(i-MIXSRC_REa);