Updates from xMasterX (mostly)

Thanks to @xMasterX
This commit is contained in:
RogueMaster
2022-12-19 23:00:43 -05:00
parent 013b51c025
commit 341a3937c6
19 changed files with 244 additions and 52 deletions

View File

@@ -103,7 +103,7 @@ static void tama_p1_hal_set_lcd_icon(u8_t icon, bool_t val) {
static void tama_p1_hal_play_frequency(bool_t en) {
if(en) {
if(furi_hal_speaker_acquire(30)) {
if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(30)) {
furi_hal_speaker_start(g_ctx->frequency, 0.5f);
}
} else {
@@ -112,6 +112,7 @@ static void tama_p1_hal_play_frequency(bool_t en) {
furi_hal_speaker_release();
}
}
g_ctx->buzzer_on = en;
}