Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Minaylov <nm29719@gmail.com>2022-04-07 18:00:45 +0300
committerGitHub <noreply@github.com>2022-04-07 18:00:45 +0300
commitd63589034221afdd1fc69ac979777a6811878024 (patch)
treeb890cfea6a6121f0a2c3a7b48e6aeee5b0d1997c /applications/subghz/scenes
parent02b9cf90d5cc54f1b7ba3d7950460a460769a56c (diff)
[FL-2297, FL-2289] Power info command, Validator fixes (#1097)
* Power info command, validator fixes * strdup in validator, fix memory leak * furi_hal_crypto fixed again * FuriHal: limit ARR and CC in speaker hal * FuriHal: LL_TIM_DisableAllOutputs in speaker stop * Rpc: fix memory leak in screen streaming * Get rid of crypto_enable/crypto_disable Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/scenes')
-rw-r--r--applications/subghz/scenes/subghz_scene_save_name.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/subghz/scenes/subghz_scene_save_name.c b/applications/subghz/scenes/subghz_scene_save_name.c
index 0edee9ee..539eb166 100644
--- a/applications/subghz/scenes/subghz_scene_save_name.c
+++ b/applications/subghz/scenes/subghz_scene_save_name.c
@@ -42,8 +42,10 @@ void subghz_scene_save_name_on_enter(void* context) {
SUBGHZ_MAX_LEN_NAME + 1, // buffer size
dev_name_empty);
- ValidatorIsFile* validator_is_file =
- validator_is_file_alloc_init(SUBGHZ_APP_FOLDER, SUBGHZ_APP_EXTENSION);
+ ValidatorIsFile* validator_is_file = validator_is_file_alloc_init(
+ SUBGHZ_APP_FOLDER,
+ SUBGHZ_APP_EXTENSION,
+ (dev_name_empty) ? (NULL) : (subghz->file_name_tmp));
text_input_set_validator(text_input, validator_is_file_callback, validator_is_file);
view_dispatcher_switch_to_view(subghz->view_dispatcher, SubGhzViewIdTextInput);