Skip to content

Commit 432d84a

Browse files
committed
SD Menu print fix
1 parent 1414a8c commit 432d84a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

RnD/functor/test/README

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
This directory is intended for PIO Unit Testing and project tests.
3+
4+
Unit Testing is a software testing method by which individual units of
5+
source code, sets of one or more MCU program modules together with associated
6+
control data, usage procedures, and operating procedures, are tested to
7+
determine whether they are fit for use. Unit testing finds problems early
8+
in the development cycle.
9+
10+
More information about PIO Unit Testing:
11+
- https://docs.platformio.org/page/plus/unit-testing.html

src/plugin/SDMenu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ class SDMenuT:public menuNode,public FS {
224224
Used printTo(navRoot &root,bool sel,menuOut& out, idx_t idx,idx_t len,idx_t pn) {
225225
if(root.navFocus!=this) {//show given title or filename if selected
226226
return selectedFile==""?
227-
menuNode::printTo(root,sel,out,idx,len,pn):
227+
/*menuNode::printTo(root,sel,out,idx,len,pn)*/
228+
out.printRaw(shadow->text,len):
228229
out.printRaw(selectedFile.c_str(),len);
229230
} else if(idx==-1) {//when menu open (show folder name)
230231
((menuNodeShadow*)shadow)->sz=SDMenuT<FS>::count()+USE_BACKDOTS;

src/plugin/SdFatMenu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ class SDMenuT:public menuNode,public FS {
235235
Used printTo(navRoot &root,bool sel,menuOut& out, idx_t idx,idx_t len,idx_t pn) {
236236
if(root.navFocus!=this) {//show given title or filename if selected
237237
return selectedFile==""?
238-
menuNode::printTo(root,sel,out,idx,len,pn):
238+
/*menuNode::printTo(root,sel,out,idx,len,pn)*/
239+
out.printRaw(shadow->text,len):
239240
out.printRaw(selectedFile.c_str(),len);
240241
} else if(idx==-1) {//when menu open (show folder name)
241242
((menuNodeShadow*)shadow)->sz=SDMenuT<FS>::count()+USE_BACKDOTS;

0 commit comments

Comments
 (0)