Skip to content

Commit 6810e5a

Browse files
committed
add selected index along with enumerated options list on json format
1 parent 5ada639 commit 6810e5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=ArduinoMenu library
2-
version=4.17.15
2+
version=4.17.16
33
author=Rui Azevedo, [email protected]
44
maintainer=neu-rah, [email protected]
55
sentence=Generic menu/interactivity system
6-
paragraph=Easy to define menu system with sub-menus and associated function to call. Works either over serial or multiple combinations of IO
6+
paragraph=Easy to define menu system with sub-menus and associated function to call. Works from serial to Web depending on the hardware.
77
category=Display
88
url=https://github.com/neu-rah/ArduinoMenu
99
dot_a_linkage=false

src/menuIO/jsonFmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// o<<node.sz();
3939
for(idx_t n=0;n<node.sz();n++)
4040
o<<(n?",":"")<<"\""<<node[n]<<"\"";
41-
o<<"]";
41+
o<<"],\"sel\":\""<<((menuVariantBase*)&node)->sync()<<"\"";
4242
}
4343
};
4444
#endif

0 commit comments

Comments
 (0)