mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
second line needs to be copied separately
removing info about second line for now, fixing later
This commit is contained in:
@@ -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]);
|
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) {
|
if(id_set) {
|
||||||
furi_check(furi_hal_usb_set_config(&usb_hid, &bad_usb->hid_cfg));
|
furi_check(furi_hal_usb_set_config(&usb_hid, &bad_usb->hid_cfg));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
This firmware supports the `DUCKY_LANG` keyword to change the keyboard layout.
|
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:
|
Currently implemented:
|
||||||
* `US` = US (default)
|
* `US` = US (default)
|
||||||
* `DE` = German QWERTZ
|
* `DE` = German QWERTZ
|
||||||
|
|||||||
Reference in New Issue
Block a user