From a077f2e32521ed444bf708ccec77d75f020a5f5c Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Tue, 4 Jan 2022 09:35:02 +1000 Subject: [PATCH] Change version references to 2.6 --- radio/src/lua/api_general.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/radio/src/lua/api_general.cpp b/radio/src/lua/api_general.cpp index 0d30b4586..42773c46e 100644 --- a/radio/src/lua/api_general.cpp +++ b/radio/src/lua/api_general.cpp @@ -836,7 +836,7 @@ The list of valid sources is available: @retval nil the requested field was not found -@status current Introduced in 2.0.8, 'unit' field added in 2.2.0 +@status current Introduced in 2.0.8, 'unit' field added in 2.2.0, and argument also can be an index number as of 2.6.0 */ static int luaGetFieldInfo(lua_State * L) { @@ -2084,7 +2084,7 @@ static int luaGetSwitchValue(lua_State * L) This is an iterator function over switch positions. `for switchIndex, switchName in switches() do ...` will iterate over all available switch positions. -@status current Introduced in 2.7 +@status current Introduced in 2.6 */ static int luaNextSwitch(lua_State * L) @@ -2140,7 +2140,7 @@ static int luaSwitches(lua_State * L) @notice the source names shown on the screen are not the same as the names used by `getFieldInfo` and `getValue`. But the indices are the same, so `getValue(index)` will work with the indices obtained here. This function is rather time consuming, and should not be used repeatedly in a script, if it can be avoided. -@status current Introduced in 2.7 +@status current Introduced in 2.6 */ static int luaGetSourceIndex(lua_State * L) @@ -2176,7 +2176,7 @@ static int luaGetSourceIndex(lua_State * L) @notice the source names shown on the screen are not the same as the names used by `getFieldInfo` and `getValue`. But the indices are the same, so `getValue(index)` will work with the indices used here. -@status current Introduced in 2.7 +@status current Introduced in 2.6 */ static int luaGetSourceName(lua_State * L) @@ -2200,7 +2200,7 @@ static int luaGetSourceName(lua_State * L) This is an iterator function over value sources. `for sourceIndex, sourceName in sources() do ...` will iterate over all available value sources. -@status current Introduced in 2.7 +@status current Introduced in 2.6 */ static int luaNextSource(lua_State * L)