From 2e12b6401fd2a916d842976095930d403f5e84ba Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 14 Jan 2017 16:18:19 +0100 Subject: [PATCH] Re #3719: documentation updated for model.setLogicalSwitch() - how to set "and" parameter (previous commit was wrong). --- radio/src/lua/api_model.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/lua/api_model.cpp b/radio/src/lua/api_model.cpp index 684c9f14b..1e8a6a8b4 100644 --- a/radio/src/lua/api_model.cpp +++ b/radio/src/lua/api_model.cpp @@ -701,9 +701,6 @@ 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) @@ -735,9 +732,12 @@ Set Logical Switch parameters @param value (table) see model.getLogicalSwitch() for table format -@notice If a parameter is missing from the value, then +@notice If a parameter is missing from the value, then that parameter remains unchanged. +@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 luaModelSetLogicalSwitch(lua_State *L)