Fixed starting scripts from "Tools" page

This commit is contained in:
Raphael Coeffic
2021-05-30 08:10:02 +02:00
parent df79e10be5
commit 54a7ef68e0
2 changed files with 27 additions and 18 deletions
+1 -3
View File
@@ -29,8 +29,6 @@
extern uint8_t g_moduleIdx;
#define TOOL_NAME_MAXLEN 16
RadioToolsPage::RadioToolsPage():
PageTab(STR_MENUTOOLS, ICON_RADIO_TOOLS)
{
@@ -104,7 +102,7 @@ void RadioToolsPage::rebuild(FormWindow * window)
strcat(path, fno.fname);
if (isRadioScriptTool(fno.fname)) {
char toolName[TOOL_NAME_MAXLEN + 1];
char toolName[RADIO_TOOL_NAME_MAXLEN + 1] = {0};
const char * label;
char * ext = (char *)getFileExtension(path);
if (readToolName(toolName, path)) {