[FL-2374] USB mode lock, USB stack update (#1051)

* Switch to CMSIS semaphores
* USB stack: HID consumer usage table

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Nikolay Minaylov
2022-03-24 20:23:40 +03:00
committed by GitHub
parent 38e92cf789
commit 3615ffecbe
3 changed files with 8 additions and 8 deletions

View File

@@ -366,9 +366,9 @@ static bool ducky_script_preload(BadUsbScript* bad_usb, File* script_file) {
}
if(id_set) {
furi_hal_usb_set_config(&usb_hid, &bad_usb->hid_cfg);
furi_check(furi_hal_usb_set_config(&usb_hid, &bad_usb->hid_cfg));
} else {
furi_hal_usb_set_config(&usb_hid, NULL);
furi_check(furi_hal_usb_set_config(&usb_hid, NULL));
}
storage_file_seek(script_file, 0, true);