Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
251 stars 48 forks source link

Single menu option #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, i found that one menu single option does not work, or if the menu option with sub-menus if the last item of the menu, it does not enter de sub-menu

This works LCDML_add (0 , LCDML_0 , 1 , "OP1" , NULL); LCDML_add (1 , LCDML_0_1 , 1 , "1" , NULL);
LCDML_add (2 , LCDML_0_1 , 2 , "2" , NULL);
LCDML_add (3 , LCDML_0_1 , 3 , "3" , NULL); LCDML_add (4 , LCDML_0 , 2 , "OP2" , NULL);

This does not work LCDML_add (0 , LCDML_0 , 1 , "OP1" , NULL); LCDML_add (1 , LCDML_0_1 , 1 , "1" , NULL);
LCDML_add (2 , LCDML_0_1 , 2 , "2" , NULL);
LCDML_add (3 , LCDML_0_1 , 3 , "3" , NULL);

Jomelo commented 6 years ago

I can reproduce it and search the bug now :-|

Jomelo commented 6 years ago

Its fixed: https://github.com/Jomelo/LCDMenuLib2/releases/tag/v1.0.1