From bcbb1b5e048923fe1ce139503d80c76ff6aede2f Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 30 Apr 2026 22:12:59 +0300 Subject: [PATCH] remove duplicate code from raw protocol --- CHANGELOG.md | 1 + lib/subghz/protocols/raw.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2a3df2d5..9a194a1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ ## Other changes * HID App: PTT improvements (PR #996 | by @hryamzik) * UI: Wording changes to be more clear (PR #994 | by @SkeletonMan03) +* SubGHz: Fix duplicate code in RAW protocol * SubGHz: Fix small logic error in KingGatesStylo4k protocol (found by @X-Stuff) * OFW PR 4364: JS: Address utf8 support when uploading JavaScript application (by @bekindpleaserewind) * Display: Extend lcd contrast range to full ST756x 6-bit range (by @ShaTie) (reduced to -10 to +18 to avoid fully unreadable state) diff --git a/lib/subghz/protocols/raw.c b/lib/subghz/protocols/raw.c index 326576bde..483435124 100644 --- a/lib/subghz/protocols/raw.c +++ b/lib/subghz/protocols/raw.c @@ -99,10 +99,6 @@ bool subghz_protocol_raw_save_to_file_init( if(!storage_simply_mkdir(instance->storage, SUBGHZ_RAW_FOLDER)) { break; } - // Create saved directory if necessary - if(!storage_simply_mkdir(instance->storage, SUBGHZ_RAW_FOLDER)) { - break; - } furi_string_set(instance->file_name, dev_name); // First remove subghz device file if it was saved