mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-14 14:52:32 +00:00
Merge branch 'develop' into revert-2m-phy
This commit is contained in:
@@ -50,8 +50,11 @@ class AudioThread : public concurrency::OSThread
|
|||||||
delete i2sRtttl;
|
delete i2sRtttl;
|
||||||
i2sRtttl = nullptr;
|
i2sRtttl = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rtttlFile != nullptr) {
|
||||||
delete rtttlFile;
|
delete rtttlFile;
|
||||||
rtttlFile = nullptr;
|
rtttlFile = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
setCPUFast(false);
|
setCPUFast(false);
|
||||||
#ifdef T_LORA_PAGER
|
#ifdef T_LORA_PAGER
|
||||||
@@ -99,9 +102,9 @@ class AudioThread : public concurrency::OSThread
|
|||||||
};
|
};
|
||||||
|
|
||||||
AudioGeneratorRTTTL *i2sRtttl = nullptr;
|
AudioGeneratorRTTTL *i2sRtttl = nullptr;
|
||||||
AudioOutputI2S *audioOut;
|
AudioOutputI2S *audioOut = nullptr;
|
||||||
|
|
||||||
AudioFileSourcePROGMEM *rtttlFile;
|
AudioFileSourcePROGMEM *rtttlFile = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -310,7 +310,6 @@ void ExternalNotificationModule::stopNow()
|
|||||||
rtttl::stop();
|
rtttl::stop();
|
||||||
#ifdef HAS_I2S
|
#ifdef HAS_I2S
|
||||||
LOG_INFO("Stop audioThread playback");
|
LOG_INFO("Stop audioThread playback");
|
||||||
if (audioThread->isPlaying())
|
|
||||||
audioThread->stop();
|
audioThread->stop();
|
||||||
#endif
|
#endif
|
||||||
// Turn off all outputs
|
// Turn off all outputs
|
||||||
|
|||||||
Reference in New Issue
Block a user