mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
Compilation fix
This commit is contained in:
parent
cb2a5ed868
commit
618bcfe72f
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ void addRadioModuleTool(uint8_t index, const char * label, void (* tool)(event_t
|
|||
|
||||
#define TOOL_NAME_MAXLEN 16
|
||||
|
||||
#if defined(LUA)
|
||||
bool readToolName(const char * filename, char * name)
|
||||
{
|
||||
FIL file;
|
||||
|
@ -112,6 +113,7 @@ bool isRadioScriptTool(const char * filename)
|
|||
const char * ext = getFileExtension(filename);
|
||||
return ext && !strcasecmp(ext, SCRIPT_EXT);
|
||||
}
|
||||
#endif
|
||||
|
||||
void menuRadioTools(event_t event)
|
||||
{
|
||||
|
@ -144,6 +146,7 @@ void menuRadioTools(event_t event)
|
|||
addRadioModuleTool(index++, STR_POWER_METER_EXT, menuRadioPowerMeter, EXTERNAL_MODULE);
|
||||
#endif
|
||||
|
||||
#if defined(LUA)
|
||||
FILINFO fno;
|
||||
DIR dir;
|
||||
|
||||
|
@ -160,6 +163,7 @@ void menuRadioTools(event_t event)
|
|||
addRadioScriptTool(index++, fno.fname);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (index == 0) {
|
||||
lcdDrawCenteredText(LCD_H/2, STR_NO_TOOLS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue