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

REPEAT has a limit, around 255 before it starts looping around back to 1 #59

Open
ImmortalZypther opened this issue Jun 7, 2021 · 1 comment

Comments

@ImmortalZypther
Copy link

As the issue title states, the REPEAT command has a limit to how many times it will repeat until it overflows back to 1.

It's around 255, but the numbers are sometimes inconsistent.

@jose1711
Copy link
Contributor

jose1711 commented Feb 17, 2023

You might want to try and change the type of repeats from uint8_t to uint16_t in this line and recompile the firmware.

uint8_t repeats = atoi(goto_next_arg(read_buffer, read_buffer + READ_BUF_SIZE));

Edit: alternatively you may want to try https://github.com/dekuNukem/duckyPad/blob/master/duckyscript3_beta_test.md which removes this limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants