Fixed issue with Bell Assignments

This commit is contained in:
2025-10-26 11:08:19 +02:00
parent d1835beff5
commit 06891e8d82
5 changed files with 85 additions and 5 deletions

View File

@@ -294,7 +294,13 @@ void Player::durationTimerCallback(TimerHandle_t xTimer) {
// Check if it's time to stop playback
bool Player::timeToStop(unsigned long now) {
if (isPlaying && !infinite_play) {
if (isPlaying && !infinite_play && total_duration == 0) {
if (now > startTime){}
LOG_DEBUG("(Single Loop Run Seelected) Soft Stopping.");
return true;
}
}
else if (isPlaying && !infinite_play) {
uint64_t stopTime = startTime + total_duration;
if (now >= stopTime) {
LOG_DEBUG("(TimerFunction) Total Run Duration Reached. Soft Stopping.");