Преглед на файлове

[FL-3046] Notification: fix recursive speaker acquire #2147

あく преди 3 години
родител
ревизия
94453d9100
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      applications/services/notification/notification_app.c

+ 1 - 1
applications/services/notification/notification_app.c

@@ -150,7 +150,7 @@ void notification_vibro_off() {
 }
 
 void notification_sound_on(float freq, float volume) {
-    if(furi_hal_speaker_acquire(30)) {
+    if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(30)) {
         furi_hal_speaker_start(freq, volume);
     }
 }