Current Behavior
Debug can be confusing since the default state name resets to "Invalid" after each call, so the sName looks like it's being called with value "Invalid" in online mode, causing some confusion and generating red herrings
Expected Behavior
Debug should be less confusing
The default default is essentially irrelevant here, functionally: you only call this FB if you want to set up a real state with some name.
Context / environment
Encountered while helping debug on tmo motion
Steps to Reproduce (for bugs)
- look at tmo-motion sp1k4 program in online mode
Suggested Solution
Change it to empty string, "unnamed", or something else less scary.