mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-23 10:01:58 +03:00
second line needs to be copied separately
removing info about second line for now, fixing later
This commit is contained in:
parent
e461cbb25c
commit
7256c3acf0
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user