Fixed issue with Bell Assignments
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user