Fix BadUSB bug (#365)

This commit is contained in:
MX 2023-02-26 04:22:06 +03:00
parent a435959ee3
commit 543346f885
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -31,6 +31,8 @@ bool bad_usb_scene_work_on_event(void* context, SceneManagerEvent event) {
void bad_usb_scene_work_on_enter(void* context) { void bad_usb_scene_work_on_enter(void* context) {
BadUsbApp* app = context; BadUsbApp* app = context;
furi_check(furi_hal_usb_set_config(NULL, NULL));
FuriString* file_name; FuriString* file_name;
file_name = furi_string_alloc(); file_name = furi_string_alloc();
path_extract_filename(app->file_path, file_name, true); path_extract_filename(app->file_path, file_name, true);