Skip to content

Commit

Permalink
Merge pull request #119: Issue_118: In modus pause_if_card_removed no…
Browse files Browse the repository at this point in the history
… shortcut is played
  • Loading branch information
boerge1 authored Oct 13, 2023
2 parents 94705be + 2fa865a commit 6171d42
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ Die SD Karte (Ordner mp3 und advert) hat sich gegenüber der Version 3.1.2 geän

# Change Log

## Version 3.1.4 (08.10.2023)
- [Issue 118](https://github.com/tonuino/TonUINO-TNG/issues/118): In modus pause_if_card_removed no shortcut is played

## Version 3.1.4 (03.10.2023)
- [Issue 115](https://github.com/tonuino/TonUINO-TNG/issues/115): Sometimes initial SetVolume does not come to an end

## Version 3.1.4 (20.09.2023)
- [Issue 103](https://github.com/tonuino/TonUINO-TNG/issues/103): Deploy pages for online upload
- [Issue 111](https://github.com/tonuino/TonUINO-TNG/issues/111): TonUINO crashes if if the player gives a track count >255
- [Issue 108](https://github.com/tonuino/TonUINO-TNG/issues/108): Missing OnPlayFinished: the progress is not saved for Hoerbuch mode
Expand Down
2 changes: 1 addition & 1 deletion TonUINO-TNG.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void setup()
LOG(init_log, s_error, F("TonUINO Version 3.1 - refactored by Boerge1\n"));
LOG(init_log, s_error, F("created by Thorsten Voß and licensed under GNU/GPL."));
LOG(init_log, s_error, F("Information and contribution at https://tonuino.de.\n"));
LOG(init_log, s_error, F("V3.1.4 03.10.23\n"));
LOG(init_log, s_error, F("V3.1.4 08.10.23\n"));

Tonuino::getTonuino().setup();
}
Expand Down
2 changes: 1 addition & 1 deletion src/state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ void StartPlay::react(command_e const &/*cmd_e*/) {
if (timer.isActive()) {
if (timer.isExpired()) {
LOG(state_log, s_debug, str_StartPlay(), str_to(), str_Play());
if (settings.pauseWhenCardRemoved && chip_card.isCardRemoved())
if (settings.pauseWhenCardRemoved && chip_card.isCardRemoved() && tonuino.playingCard())
transit<Pause>();
else
transit<Play>();
Expand Down
1 change: 1 addition & 0 deletions src/tonuino.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Tonuino {
const nfcTagObject& getCard() const { return myCard; }
void setFolder(folderSettings *newFolder ) { myFolder = newFolder; }
uint8_t getFolder() { return myFolder->folder; }
bool playingCard() { return myFolder == &myCard.nfcFolderSettings; }

Mp3& getMp3 () { return mp3 ; }
Commands& getCommands () { return commands ; }
Expand Down

0 comments on commit 6171d42

Please sign in to comment.