Skip to content

Commit f506a0a

Browse files
authored
Merge pull request #66 from christophepersoz/patch-3
valuecolor correction from master branch
2 parents a362a0f + b3890c4 commit f506a0a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/menu.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,14 @@ v2.1 - Add full support of SetPosition(x,y) to move the menu inside the screen (
126126
:text(text),action(action),enabled(true) {}
127127
inline void enable() {enabled=true;}
128128
inline void disable() {enabled=false;}
129+
virtual void printName(menuOut& p) {print_P(p,text);}
130+
virtual void printValue(menuOut& p) {}
131+
virtual void printUnit(menuOut& p) {}
129132
virtual void printTo(menuOut& p) {
130-
//p.print(text);
131-
print_P(p,text);
132-
}
133+
printName(p);
134+
printValue(p);
135+
printUnit(p);
136+
}
133137
virtual bool needRedraw(menuOut&,bool) {return false;}
134138
virtual promptFeedback activate(menuOut& p,Stream&c,bool) {
135139
return action(*this,p,c);

0 commit comments

Comments
 (0)