lcdexec: Worked around parameter issue by automatically adding an Action entry

as last parameter menu entry.
This commit is contained in:
marschap committed 2007-10-11 19:29:34 +00:00
1 parent 58f2761986
commit 898e21be25
4 files changed
+70 -17

No files matched your search

+2 -2
View File
@@ -366,10 +366,10 @@ static int process_response(char *str)
* - command entry without args
* - last arg of a command entry with args */
if (((entry->type == MT_EXEC) && (entry->children == NULL)) ||
((entry->type & MT_ARG_ANY) && (entry->next == NULL))) {
((entry->type & MT_ARGUMENT) && (entry->next == NULL))) {
// last arg => get parent entry
if ((entry->type & MT_ARG_ANY) && (entry->next == NULL))
if ((entry->type & MT_ARGUMENT) && (entry->next == NULL))
entry = entry->parent;
if (entry->type == MT_EXEC)