duckyPad
duckyPad copied to clipboard
REPEAT has a limit, around 255 before it starts looping around back to 1
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.
You might want to try and change the type of repeats
from uint8_t
to uint16_t
in this line and recompile the firmware.
https://github.com/dekuNukem/duckyPad/blob/5e5d8021abc68f2c1f634d2291eede4823f4568a/firmware/code/Src/parser.c#L1012
Edit: alternatively you may want to try https://github.com/dekuNukem/duckyPad/blob/master/duckyscript3_beta_test.md which removes this limitation.