Merge pull request #744 from opentx/bsongis/Issue741_a_equals_x_in_logical_switches

Issue #741 fixed - a==x added in logical switches functions
This commit is contained in:
Andre Bernet
2014-02-25 21:07:07 +01:00
18 changed files with 90 additions and 15 deletions
+5
View File
@@ -1585,7 +1585,12 @@ bool getSwitch(int8_t swtch)
#endif
switch (cs->func) {
#if defined(CPUARM)
case LS_FUNC_VEQUAL:
result = (x==y);
break;
#endif
case LS_FUNC_VALMOSTEQUAL:
#if defined(GVARS)
if (v1 >= MIXSRC_GVAR1 && v1 <= MIXSRC_LAST_GVAR)
result = (x==y);