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

This commit is contained in:
あく 2022-12-19 20:57:44 +09:00 committed by GitHub
parent f10e82c64d
commit 94453d9100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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