fmt fixes

This commit is contained in:
RogueMaster
2022-12-19 21:44:21 -05:00
parent 79000db3bd
commit 3f5188fc6b
3 changed files with 14 additions and 11 deletions

View File

@@ -414,7 +414,8 @@ void subghz_scene_receiver_config_on_enter(void* context) {
SPEAKER_COUNT, SPEAKER_COUNT,
subghz_scene_receiver_config_set_speaker, subghz_scene_receiver_config_set_speaker,
subghz); subghz);
value_index = value_index_uint32(subghz->txrx->speaker_state, speaker_value, SPEAKER_COUNT); value_index =
value_index_uint32(subghz->txrx->speaker_state, speaker_value, SPEAKER_COUNT);
variable_item_set_current_value_index(item, value_index); variable_item_set_current_value_index(item, value_index);
variable_item_set_current_value_text(item, speaker_text[value_index]); variable_item_set_current_value_text(item, speaker_text[value_index]);

View File

@@ -115,7 +115,8 @@ static void decrease_volume(TuningForkState* tuning_fork_state) {
static void play(TuningForkState* tuning_fork_state) { static void play(TuningForkState* tuning_fork_state) {
if(furi_hal_speaker_acquire(30)) { if(furi_hal_speaker_acquire(30)) {
furi_hal_speaker_start(current_tuning_note_freq(tuning_fork_state), tuning_fork_state->volume); furi_hal_speaker_start(
current_tuning_note_freq(tuning_fork_state), tuning_fork_state->volume);
} }
} }

View File

@@ -59,7 +59,8 @@ int32_t usb_midi_app(void* p) {
current_note = note_on.note; current_note = note_on.note;
if(furi_hal_speaker_acquire(30)) { if(furi_hal_speaker_acquire(30)) {
furi_hal_speaker_start( furi_hal_speaker_start(
note_to_frequency(note_on.note), note_on.velocity / 127.0f); note_to_frequency(note_on.note),
note_on.velocity / 127.0f);
} }
} else if(event->type == NoteOff) { } else if(event->type == NoteOff) {
NoteOffEvent note_off = AsNoteOff(event); NoteOffEvent note_off = AsNoteOff(event);