Skip to content

Commit

Permalink
Update ducky_script.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zricote authored Mar 18, 2024
1 parent 8446012 commit 3a566a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/main/bad_usb/helpers/ducky_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,10 @@ static int32_t bad_usb_worker(void* context) {
continue;
}
} else if(worker_state == BadUsbStateStringDelay) { // State: print string with delays
uint32_t delay = (bad_usb->stringdelay == 0) ? bad_usb->defstringdelay : bad_usb->stringdelay;
uint32_t flags = bad_usb_flags_get(
WorkerEvtEnd | WorkerEvtStartStop | WorkerEvtPauseResume | WorkerEvtDisconnect,
bad_usb->stringdelay);
delay);

if(!(flags & FuriFlagError)) {
if(flags & WorkerEvtEnd) {
Expand Down

0 comments on commit 3a566a1

Please sign in to comment.