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:
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user