second line needs to be copied separately

removing info about second line for now, fixing later
This commit is contained in:
MX 2022-08-02 03:40:22 +03:00
parent e461cbb25c
commit 7256c3acf0
No known key found for this signature in database
GPG Key ID: 6C4C311DFD4B4AB5
2 changed files with 1 additions and 7 deletions

View File

@ -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 {

View File

@ -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