From 09f80d0086d0f3eddfd9fc69bbfa66cb48bb57a3 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 21 Dec 2022 13:00:27 +0300 Subject: [PATCH] fbt format --- .../lfrfid/scenes/lfrfid_scene_clear_t5577.c | 16 +++++----------- .../scenes/subghz_scene_receiver_config.c | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/applications/main/lfrfid/scenes/lfrfid_scene_clear_t5577.c b/applications/main/lfrfid/scenes/lfrfid_scene_clear_t5577.c index 78a20af6e..db9718669 100644 --- a/applications/main/lfrfid/scenes/lfrfid_scene_clear_t5577.c +++ b/applications/main/lfrfid/scenes/lfrfid_scene_clear_t5577.c @@ -42,15 +42,9 @@ static void lfrfid_clear_t5577_password_and_config_to_EM(LfRfid* app) { popup_set_header(popup, "Removing\npassword", 90, 36, AlignCenter, AlignCenter); popup_set_icon(popup, 0, 3, &I_RFIDDolphinSend_97x61); - popup_set_text( - popup, - curr_buf, - 90, - 56, - AlignCenter, - AlignCenter); + popup_set_text(popup, curr_buf, 90, 56, AlignCenter, AlignCenter); notification_message(app->notifications, &sequence_blink_start_magenta); - + for(uint8_t i = 0; i < default_passwords_len; i++) { FURI_CRITICAL_ENTER(); snprintf(curr_buf, sizeof(curr_buf), "Pass %d of %d", i, default_passwords_len); @@ -70,7 +64,7 @@ static void lfrfid_clear_t5577_password_and_config_to_EM(LfRfid* app) { void lfrfid_scene_clear_t5577_on_enter(void* context) { LfRfid* app = context; Popup* popup = app->popup; - + lfrfid_clear_t5577_password_and_config_to_EM(app); notification_message(app->notifications, &sequence_success); @@ -88,10 +82,10 @@ void lfrfid_scene_clear_t5577_on_enter(void* context) { bool lfrfid_scene_clear_t5577_on_event(void* context, SceneManagerEvent event) { LfRfid* app = context; bool consumed = false; - + const uint32_t prev_scene = LfRfidSceneExtraActions; - if (event.type == SceneManagerEventTypeCustom && event.event == LfRfidEventPopupClosed) { + if(event.type == SceneManagerEventTypeCustom && event.event == LfRfidEventPopupClosed) { scene_manager_search_and_switch_to_previous_scene(app->scene_manager, prev_scene); consumed = true; } 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(