mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
JS: Fix badusb.quit() and serial.end()
This commit is contained in:
@@ -81,6 +81,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) {
|
||||
if(badusb->usb_if_prev) {
|
||||
furi_hal_hid_kb_release_all();
|
||||
furi_check(furi_hal_usb_set_config(badusb->usb_if_prev, NULL));
|
||||
badusb->usb_if_prev = NULL;
|
||||
}
|
||||
if(badusb->hid_cfg) {
|
||||
free(badusb->hid_cfg);
|
||||
|
||||
Reference in New Issue
Block a user