File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 66// ////////////////////////////////////////////////////////////////////////////
77// memory macros ------------------------------------------------------------
88#ifndef __AVR_ARCH__
9- #define MENU_USERAM
9+ #ifndef USE_PGM
10+ #define MENU_USERAM
11+ #endif
1012#endif
1113#if defined(ESP8266)
1214 #define MENU_ASYNC
Original file line number Diff line number Diff line change 3434 #endif
3535 int cursorCtrl=0 ;
3636 void jsonOptions (menuOut& o,navNode &nav,menuNode& node,idx_t idx) {
37- o<<" ,\" options\" :[" ;
37+ // o<<",\"options\":[";
38+ o.print (" ,\" options\" :[" );
3839 // o<<node.sz();
39- for (idx_t n=0 ;n<node.sz ();n++)
40- o<<(n?" ," :" " )<<" \" " <<node[n]<<" \" " ;
41- o<<" ],\" sel\" :\" " <<((menuVariantBase*)&node)->sync ()<<" \" " ;
40+ for (idx_t n=0 ;n<node.sz ();n++) {
41+ o.print (n?" ," :" " );
42+ o.print (" \" " );
43+ o.print (node[n].getText ());
44+ o.print (" \" " );
45+ // o<<(n?",":"")<<"\""<<node[n]<<"\"";
46+ }
47+ // o<<"],\"sel\":\""<<((menuVariantBase*)&node)->sync()<<"\"";
48+ o.print (" ],\" sel\" :\" " );
49+ o.print (((menuVariantBase*)&node)->sync ());
50+ o.print (" \" " );
4251 }
4352 };
4453#endif
Original file line number Diff line number Diff line change 1818 virtual bool fieldMode () const ;
1919 inline void fieldOn () {setFieldMode (true );}
2020 inline void fieldOff () {setFieldMode (false );}
21+ void flush () {}
2122 };
2223
2324 class noInput :public menuIn {
You can’t perform that action at this time.
0 commit comments