From da50cd93d09807f68e674b11f421affd07887359 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Fri, 28 Jul 2023 21:25:22 +0200 Subject: [PATCH] MP3 player file path clean up --- src/menu/mp3_player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/menu/mp3_player.c b/src/menu/mp3_player.c index b50ecff7..1c463bbe 100644 --- a/src/menu/mp3_player.c +++ b/src/menu/mp3_player.c @@ -2,6 +2,7 @@ #include #include "mp3_player.h" +#include "utils/fs.h" #include "utils/utils.h" #define MINIMP3_IMPLEMENTATION @@ -153,7 +154,7 @@ mp3player_err_t mp3player_load (char *path) { mp3player_unload(); } - if (f_open(&p->fil, path, FA_READ) != FR_OK) { + if (f_open(&p->fil, strip_sd_prefix(path), FA_READ) != FR_OK) { return MP3PLAYER_ERR_IO; }