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

@@ -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(

View File

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

View File

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