diff --git a/README.md b/README.md index 6cea842..beb7ec8 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,9 @@ Work is in progress... --- ## Version history +#### v0.9.156 +- fixed bug of random change of playback location when playing files from SD card + #### v0.9.155 - added bitrate badget for displays ST7789, ST7796, ILI9488, ILI9486, ILI9341, ILI9225 and ST7735(BLACKTAB) (disable: #define BITRATE_FULL false) diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index dc9edac..c525a62 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define YOVERSION "0.9.155" +#define YOVERSION "0.9.156" /******************************************************* DO NOT EDIT THIS FILE. diff --git a/yoRadio/src/core/player.cpp b/yoRadio/src/core/player.cpp index f6d0c18..203ea20 100644 --- a/yoRadio/src/core/player.cpp +++ b/yoRadio/src/core/player.cpp @@ -89,7 +89,7 @@ void Player::setError(const char *e){ } void Player::_stop(bool alreadyStopped){ - if(config.store.play_mode==PM_SDCARD) config.sdResumePos = player.getFilePos(); + if(config.store.play_mode==PM_SDCARD && !alreadyStopped) config.sdResumePos = player.getFilePos(); _status = STOPPED; setOutputPins(false); if(!hasError()) config.setTitle((display.mode()==LOST || display.mode()==UPDATING)?"":const_PlStopped);