Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into issue_117
Browse files Browse the repository at this point in the history
  • Loading branch information
boerge1 committed Oct 13, 2023
2 parents de7a28a + 63678ad commit 0ab6751
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Allgemeine Anleitungen zum Einrichten der IDE findet man hier [www.tonuino.de/TN
- Es müssen folgende Versionen der Libraries verwendet werden:
- jchristensen/JC_Button: 2.1.2
- miguelbalboa/MFRC522: 1.4.10
- makuna/DFPlayer Mini Mp3 by Makuna: 1.2.1
- makuna/DFPlayer Mini Mp3 by Makuna: 1.2.2
- adafruit/Adafruit NeoPixel: 1.11.0 (optional, nur bei Feature NEO_RING notwendig)


Expand All @@ -51,8 +51,10 @@ Die SD Karte (Ordner mp3 und advert) hat sich gegenüber der Version 3.1.2 geän

# Change Log

## Version 3.1.4 (06.10.2023)
- [Issue 117](https://github.com/tonuino/TonUINO-TNG/issues/117): Support potentiometer for setting the volume
## Version 3.1.4 (13.10.2023)
- [Issue 117](https://github.com/tonuino/TonUINO-TNG/issues/117): Support potentiometer for setting the
- [Issue 120](https://github.com/tonuino/TonUINO-TNG/issues/120): Change to version 1.2.2 of the DFMiniMp3 library
- [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
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 06.10.23\n"));
LOG(init_log, s_error, F("V3.1.4 13.10.23 III\n"));

Tonuino::getTonuino().setup();
}
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
lib_deps =
jchristensen/JC_Button@^2.1.2
miguelbalboa/MFRC522@^1.4.10
makuna/DFPlayer Mini Mp3 by [email protected].1
makuna/DFPlayer Mini Mp3 by [email protected].2
adafruit/Adafruit NeoPixel@^1.11.0

build_flags =
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.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void Tonuino::setup() {

// DFPlayer Mini initialisieren
mp3.begin();
delay(2000);
mp3.setVolume();
mp3.setEq(static_cast<DfMp3_Eq>(settings.eq - 1));

Expand Down
1 change: 1 addition & 0 deletions src/tonuino.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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 0ab6751

Please sign in to comment.