Skip to content

Commit

Permalink
JS: Fix badusb.quit() and serial.end()
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 23, 2024
1 parent c03d3a8 commit 401ab0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/system/js_app/modules/js_badusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions applications/system/js_app/modules/js_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ static void js_serial_deinit(JsSerialInst* js_serial) {

expansion_enable(furi_record_open(RECORD_EXPANSION));
furi_record_close(RECORD_EXPANSION);

js_serial->setup_done = false;
}
}

Expand Down

0 comments on commit 401ab0d

Please sign in to comment.