1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 23:35:17 +03:00

Re #1480: Cosmetics

This commit is contained in:
Damjan Adamic 2014-07-18 09:07:36 +02:00
parent fb3e615008
commit 2f01f139cc
2 changed files with 5 additions and 7 deletions

View file

@ -165,7 +165,8 @@ static LuaField foundField = {0, foundName, foundDesc};
/** /**
Return filed data for a given field name Return filed data for a given field name
Note: function is non-reentrant Note: function is non-reentrant,
it uses global variable foundField for return value
*/ */
const LuaField * luaFindFieldByName(const char * name) const LuaField * luaFindFieldByName(const char * name)
{ {
@ -188,15 +189,14 @@ const LuaField * luaFindFieldByName(const char * name)
} }
} }
} }
// search in lua script outputs
// TODO
return 0; // not found return 0; // not found
} }
/** /**
Return filed data for a given field id Return filed data for a given field id
Note: function is non-reentrant Note: function is non-reentrant,
it uses global variable foundField for return value
*/ */
const LuaField * luaFindFieldById(int id) const LuaField * luaFindFieldById(int id)
{ {
@ -215,8 +215,6 @@ const LuaField * luaFindFieldById(int id)
return &foundField; return &foundField;
} }
} }
// search in lua script outputs
// TODO
return 0; // not found return 0; // not found
} }