File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name =ArduinoMenu library
2- version =4.20.0
2+ version =4.20.1
33author =Rui Azevedo, ruihfazevedo@gmail.com
44maintainer =neu-rah, ruihfazevedo@gmail.com
55sentence =Generic menu/interactivity system
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ menuOut& menuOut::fill(
4444
4545idx_t menuOut::printRaw (const char * at,idx_t len) {
4646 trace (MENU_DEBUG_OUT <<" menuOut::printRaw" <<endl);
47- const char * p=( const char *) at;
47+ const char * p=at;
4848 uint8_t ch;
49- for (int n=0 ;(ch=memByte (p ++))&&(len==0 ||n<len);n++) {
49+ for (int n=0 ;(ch=memByte (at ++))&&(len==0 ||n<len);n++) {
5050 write (ch);
5151 }
52- return p-(( const char *)at) -1 ;
52+ return at-p -1 ;
5353}
5454
5555idx_t menuOut::printText (const char * at,idx_t len) {
Original file line number Diff line number Diff line change 7676 idx_t & top (navNode& nav) const ;
7777 // inline void reset() {panelsList.reset();}
7878 idx_t printRaw (const char * at,idx_t len);
79- inline idx_t printRaw (const __FlashStringHelper* at,idx_t len) {
79+ virtual inline idx_t printRaw (const __FlashStringHelper* at,idx_t len) {
8080 return printRaw ((const char *)at,len);
8181 }
8282 idx_t printText (const __FlashStringHelper* at,idx_t len) {return printRaw (at,len);}
You can’t perform that action at this time.
0 commit comments