I was using exec.Wait(100) in a few places in an output test macro. Normally, the macro works fine, but I found that pressing some uccnc buttons like Mist followed by Reset would cause the macro to act strangely (execute much faster than normal). This was repeatable. I traced the problem to the exec.Wait(100) statement. It looks like instead of waiting 100ms, it is continuing execution immediately. When I exchanged exec.Wait(100) for Thread.Sleep(100) the macro worked perfectly no matter what uccnc buttons I pushed. This problem occurred both with hardware and in uccnc demo mode.
So, are there known issues with exec.Wait? Is there a downside to using Thread.Sleep in place of exec.Wait? I can provide instructions on recreating the issue I'm seeing if there is interest.
Frank
Beta v1.2115 with UC300-5LPT
Win 11
The output test macro sequences P2-1 thru 9 output LEDs ON followed by turning them OFF, waiting 100ms between turning ON/OFF an LED.