diff --git a/applications/bad_usb/bad_usb_script.c b/applications/bad_usb/bad_usb_script.c index 84661296a..1974d937b 100644 --- a/applications/bad_usb/bad_usb_script.c +++ b/applications/bad_usb/bad_usb_script.c @@ -390,12 +390,6 @@ static uint16_t ducky_script_preload(BadUsbScript* bad_usb, File* script_file) { layout = ducky_get_layout(&line_tmp[strlen(ducky_cmd_layout) + 1]); } - // Looking for DUCKY_LANG command at second line - const char* line2_tmp = string_get_cstr(bad_usb->line); - if(strncmp(line2_tmp, ducky_cmd_layout, strlen(ducky_cmd_layout)) == 0) { - layout = ducky_get_layout(&line2_tmp[strlen(ducky_cmd_layout) + 1]); - } - if(id_set) { furi_check(furi_hal_usb_set_config(&usb_hid, &bad_usb->hid_cfg)); } else { diff --git a/documentation/BadUSBLayouts.md b/documentation/BadUSBLayouts.md index d964306ec..455fc094b 100644 --- a/documentation/BadUSBLayouts.md +++ b/documentation/BadUSBLayouts.md @@ -5,7 +5,7 @@ This firmware supports the `DUCKY_LANG` keyword to change the keyboard layout. -Add `DUCKY_LANG DE` to the first or second line of the script to choose the layout. +Add `DUCKY_LANG DE` to the first(!!!) line of the script to choose the layout. Currently implemented: * `US` = US (default) * `DE` = German QWERTZ