From be61e0793940dd2e57ce9afcf3cba01dca08accb Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 11 Feb 2017 19:08:55 +0100 Subject: [PATCH] Lua documentation update --- radio/src/lua/api_model.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/radio/src/lua/api_model.cpp b/radio/src/lua/api_model.cpp index 671209ee8..482d669cf 100644 --- a/radio/src/lua/api_model.cpp +++ b/radio/src/lua/api_model.cpp @@ -86,6 +86,12 @@ static int luaModelSetInfo(lua_State *L) Get RF module parameters +`rfProtocol` values: + * -1 OFF + * 0 D16 + * 1 D8 + * 2 LR12 + @param index (number) module index (0 for internal, 1 for external) @retval nil requested module does not exist @@ -93,7 +99,7 @@ Get RF module parameters @retval table module parameters: * `rfProtocol` (number) protocol index * `modelId` (number) receiver number - * `firstChannel` (number) start channel (0 is CH1) + * `firstChannel` (number) start channel (0 is CH1) * `channelsCount` (number) number of channels sent to module @status current Introduced in TODO @@ -118,7 +124,7 @@ static int luaModelGetModule(lua_State *L) /*luadoc @function model.setModule(index, value) -Set RF module parameters +Set RF module parameters @param index (number) module index (0 for internal, 1 for external)