audio alert

* fix seg fault
    - test for existence of audio_alert instance
This commit is contained in:
David Freese 2020-03-09 09:54:40 -05:00
parent e9a2ef2dd0
commit 797f243828

View file

@ -220,6 +220,8 @@ void center_rxfilt_at_track()
void reset_audio_alerts()
{
if (!audio_alert) return;
if (progdefaults.enable_audio_alerts && audio_alert) {
if (audio_alert->open())
LOG_INFO("Opened audio alert stream on %s", progdefaults.AlertDevice.c_str());