feat: More flexible ADC inputs (#3870)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
co-authored by
3djc
Peter Feerick
philmoz
parent
f5593c44e8
commit
b48e07026d
@@ -466,6 +466,7 @@ bool luaFindFieldByName(const char * name, LuaField & field, unsigned int flags)
|
||||
return true;
|
||||
|
||||
// check switches from 'sa' to 'sz'
|
||||
// TODO: does not work with function switches!
|
||||
if (len == 2 && name[0] == 's' && name[1] >= 'a' && name[1] <= 'z') {
|
||||
auto c = name[1] - 'a' + 'A';
|
||||
auto sw_idx = switchLookupIdx(c);
|
||||
|
||||
Reference in New Issue
Block a user