Revert "Update subghz_scene_read_raw.c"

This reverts commit 6171069802.
This commit is contained in:
r3df0xx 2022-05-27 17:14:32 +03:00
parent 72f7b14cb3
commit 676c843369

View File

@ -25,7 +25,7 @@ bool subghz_scene_read_raw_update_filename(SubGhz* subghz) {
break; break;
} }
string_set_str(subghz->file_path, temp_str); string_set(subghz->file_path, temp_str);
ret = true; ret = true;
} while(false); } while(false);
@ -171,7 +171,7 @@ bool subghz_scene_read_raw_on_event(void* context, SceneManagerEvent event) {
case SubGhzCustomEventViewReadRAWErase: case SubGhzCustomEventViewReadRAWErase:
subghz->txrx->rx_key_state = SubGhzRxKeyStateIDLE; subghz->txrx->rx_key_state = SubGhzRxKeyStateIDLE;
if(subghz_scene_read_raw_update_filename(subghz)) { if(subghz_scene_read_raw_update_filename(subghz)) {
string_set_str(subghz->file_path, subghz->file_path_tmp); strncpy(subghz->file_path_tmp, subghz->file_path, SUBGHZ_MAX_LEN_NAME);
subghz_delete_file(subghz); subghz_delete_file(subghz);
} }
notification_message(subghz->notifications, &sequence_reset_rgb); notification_message(subghz->notifications, &sequence_reset_rgb);