Skip to content

Commit

Permalink
Issue_182: Quiz game: do not repeat a question until no question remains
Browse files Browse the repository at this point in the history
* add possibility to increase/decrease volume if not playing the answers
  • Loading branch information
boerge1 committed Mar 25, 2024
1 parent 0846249 commit 147f948
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Die SD Karte (Ordner mp3 und advert) hat sich gegenüber der Version 3.1.6 geän

# Change Log

## Version 3.1.7 (21.03.2024)
## Version 3.1.7 (25.03.2024)
- [Issue 182](https://github.com/tonuino/TonUINO-TNG/issues/182): Quiz game: do not repeat a question until no question remains

## Version 3.1.7 (01.03.2024)
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.7 21.03.24\n"));
LOG(init_log, s_error, F("V3.1.7 25.03.24\n"));

Tonuino::getTonuino().setup();
}
Expand Down
6 changes: 6 additions & 0 deletions src/state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,9 @@ void Quiz::react(command_e const &cmd_e) {
mp3.enqueueTrack(tonuino.getFolder(), trackQuestion+actAnswer+1);
}
}
else {
mp3.increaseVolume();
}
break;
case command::next:
if (quizState == QuizState::playAnswer) {
Expand Down Expand Up @@ -998,6 +1001,9 @@ void Quiz::react(command_e const &cmd_e) {
mp3.enqueueTrack(tonuino.getFolder(), trackQuestion+actAnswer+1);
}
}
else {
mp3.decreaseVolume();
}
break;
case command::previous:
if (quizState == QuizState::playAnswer) {
Expand Down

0 comments on commit 147f948

Please sign in to comment.