Fixed bug making t-deck reboot when muted (#3694)

This commit is contained in:
Nicholas Baddorf 2024-04-21 15:41:22 -04:00 committed by GitHub
parent 39bbf0d352
commit 4a48a3fb52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,7 +244,8 @@ void ExternalNotificationModule::stopNow()
{ {
rtttl::stop(); rtttl::stop();
#ifdef HAS_I2S #ifdef HAS_I2S
audioThread->stop(); if (audioThread->isPlaying())
audioThread->stop();
#endif #endif
nagCycleCutoff = 1; // small value nagCycleCutoff = 1; // small value
isNagging = false; isNagging = false;