소스 검색

[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);
     }
 }