From 85306a0d91f94a2754023cfed327e92d3b50683d Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 14 Jan 2017 16:05:59 +0100 Subject: [PATCH] Re #3719: documentation updated for model.getLogicalSwitch() - how to set "and" parameter. --- radio/src/lua/api_model.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/lua/api_model.cpp b/radio/src/lua/api_model.cpp index a1df621ad..684c9f14b 100644 --- a/radio/src/lua/api_model.cpp +++ b/radio/src/lua/api_model.cpp @@ -701,6 +701,9 @@ Get Logical Switch parameters * `delay` (number) delay (time in 1/10 s) * `duration` (number) duration (time in 1/10 s) +@notice To set the `and` member (which is Lua keyword) +use the following syntax: `model.setLogicalSwitch(30, {func=4,v1=1,v2=-99, ["and"]=24})` + @status current Introduced in 2.0.0 */ static int luaModelGetLogicalSwitch(lua_State *L)