duckyPad icon indicating copy to clipboard operation
duckyPad copied to clipboard

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

Open ImmortalZypther opened this issue 3 years ago • 1 comments

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.

ImmortalZypther avatar Jun 07 '21 23:06 ImmortalZypther

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.

jose1711 avatar Feb 17 '23 07:02 jose1711