Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadUsb: STRINGDELAY feature, worker signal handling refactoring #2269

Merged
merged 20 commits into from
Feb 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions applications/main/bad_usb/bad_usb_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ static const char ducky_cmd_delay[] = {"DELAY "};
static const char ducky_cmd_string[] = {"STRING "};
static const char ducky_cmd_defdelay_1[] = {"DEFAULT_DELAY "};
static const char ducky_cmd_defdelay_2[] = {"DEFAULTDELAY "};
static const char ducky_cmd_stringdelay_1[] = {"STRINGDELAY"};
static const char ducky_cmd_stringdelay_2[] = {"STRING_DELAY"};
static const char ducky_cmd_stringdelay_1[] = {"STRINGDELAY "};
skotopes marked this conversation as resolved.
Show resolved Hide resolved
static const char ducky_cmd_stringdelay_2[] = {"STRING_DELAY "};
static const char ducky_cmd_repeat[] = {"REPEAT "};
static const char ducky_cmd_sysrq[] = {"SYSRQ "};

Expand Down Expand Up @@ -214,7 +214,7 @@ static bool ducky_string(BadUsbScript* bad_usb, const char* param) {
if(bad_usb->stringdelay == 0) {
timing = 0;
} else if(bad_usb->stringdelay > 1000) {
timing = bad_usb->stringdelay / 1000 / 2;
timing = bad_usb->stringdelay / 2 / 10;
nminaylov marked this conversation as resolved.
Show resolved Hide resolved
} else {
timing = bad_usb->stringdelay / 2;
}
Expand Down