Skip to content

Commit 759ffe9

Browse files
committed
fix removed virtual oops
1 parent ac124d2 commit 759ffe9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoMenu library
2-
version=4.20.0
2+
version=4.20.1
33
author=Rui Azevedo, [email protected]
44
maintainer=neu-rah, [email protected]
55
sentence=Generic menu/interactivity system

src/menuIo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ menuOut& menuOut::fill(
4444

4545
idx_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

5555
idx_t menuOut::printText(const char* at,idx_t len) {

src/menuIo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
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);}

0 commit comments

Comments
 (0)