mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-21 05:04:46 -07:00
fmt fixes
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user