From 543346f885259432ae7e700f9fe9e7a029100a46 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sun, 26 Feb 2023 04:22:06 +0300 Subject: [PATCH] Fix BadUSB bug (#365) --- applications/main/bad_usb/scenes/bad_usb_scene_work.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/main/bad_usb/scenes/bad_usb_scene_work.c b/applications/main/bad_usb/scenes/bad_usb_scene_work.c index 187b83bd9..337c329dd 100644 --- a/applications/main/bad_usb/scenes/bad_usb_scene_work.c +++ b/applications/main/bad_usb/scenes/bad_usb_scene_work.c @@ -31,6 +31,8 @@ bool bad_usb_scene_work_on_event(void* context, SceneManagerEvent event) { void bad_usb_scene_work_on_enter(void* context) { BadUsbApp* app = context; + furi_check(furi_hal_usb_set_config(NULL, NULL)); + FuriString* file_name; file_name = furi_string_alloc(); path_extract_filename(app->file_path, file_name, true);