Skip to content

Commit 3573231

Browse files
committed
Compile error: rp2040 littlefs
1 parent 520b526 commit 3573231

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/AudioTools/AudioLibs/SDDirect.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ class SDDirect {
248248
}
249249
return result;
250250
#else
251+
# ifdef RP2040_HOWER
252+
return p_sd->open(name, "r");
253+
# else
251254
return p_sd->open(name);
255+
# endif
252256
#endif
253257
}
254258
};

src/AudioTools/AudioLibs/SDIndex.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ class SDIndex {
310310
}
311311
return result;
312312
#else
313+
# ifdef RP2040_HOWER
314+
return p_sd->open(name, "r");
315+
# else
313316
return p_sd->open(name);
317+
# endif
314318
#endif
315319
}
316320
};

0 commit comments

Comments
 (0)