From 3f5188fc6bc763ed7a5403f56d31b1b4405e06f3 Mon Sep 17 00:00:00 2001 From: RogueMaster Date: Mon, 19 Dec 2022 21:44:21 -0500 Subject: [PATCH] fmt fixes --- .../scenes/subghz_scene_receiver_config.c | 19 ++++++++++--------- .../plugins/tuning_fork/tuning_fork.c | 3 ++- applications/plugins/usb_midi/usb_midi.c | 3 ++- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/applications/main/subghz/scenes/subghz_scene_receiver_config.c b/applications/main/subghz/scenes/subghz_scene_receiver_config.c index 9d906f3da..82debf4c0 100644 --- a/applications/main/subghz/scenes/subghz_scene_receiver_config.c +++ b/applications/main/subghz/scenes/subghz_scene_receiver_config.c @@ -408,15 +408,16 @@ void subghz_scene_receiver_config_on_enter(void* context) { variable_item_set_current_value_text(item, rssi_threshold_text[value_index]); // Lock keyboard - item = variable_item_list_add( - subghz->variable_item_list, - "Sound:", - SPEAKER_COUNT, - subghz_scene_receiver_config_set_speaker, - subghz); - 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_text(item, speaker_text[value_index]); + item = variable_item_list_add( + subghz->variable_item_list, + "Sound:", + SPEAKER_COUNT, + subghz_scene_receiver_config_set_speaker, + subghz); + 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_text(item, speaker_text[value_index]); variable_item_list_add(subghz->variable_item_list, "Lock Keyboard", 1, NULL, NULL); variable_item_list_set_enter_callback( diff --git a/applications/plugins/tuning_fork/tuning_fork.c b/applications/plugins/tuning_fork/tuning_fork.c index c846060b3..78fe269a1 100644 --- a/applications/plugins/tuning_fork/tuning_fork.c +++ b/applications/plugins/tuning_fork/tuning_fork.c @@ -115,7 +115,8 @@ static void decrease_volume(TuningForkState* tuning_fork_state) { static void play(TuningForkState* tuning_fork_state) { 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); } } diff --git a/applications/plugins/usb_midi/usb_midi.c b/applications/plugins/usb_midi/usb_midi.c index d64a836e1..b226bb58a 100644 --- a/applications/plugins/usb_midi/usb_midi.c +++ b/applications/plugins/usb_midi/usb_midi.c @@ -59,7 +59,8 @@ int32_t usb_midi_app(void* p) { current_note = note_on.note; if(furi_hal_speaker_acquire(30)) { 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) { NoteOffEvent note_off = AsNoteOff(event);