UltimateHackingKeyboard / firmware

Ultimate Hacking Keyboard firmware
Other
420 stars 66 forks source link

repeatFor throwing ERR #717

Closed mhantsch closed 1 year ago

mhantsch commented 1 year ago

firmware 10.3.1

part of my macro "keepAlive":

setVar count 6
startloop:
ifKeymap --- setLedTxt 200 "`-'"
ifKeymap --- setLedTxt 200 "---"
ifKeymap --- repeatFor count startloop

throws:

Error at keepAlive 1/4/30: Unrecognized command: startloop
> 4 | ifKeymap --- repeatFor count startloop
>   |     

I also tried without a label, but ifKeymap --- repeatFor count ($currentAddress-2) throws a similar error:

Error at keepAlive 1/5/30: Unrecognized command: ($currentAddress-2)
> 5 | ifKeymap --- repeatFor count ($currentAddress-2)
>   |      

Fun fact: the repeat actually works, and counts correctly. It just throws the ERR.

kareltucek commented 1 year ago

Yep. Thanks for report!