Either the name of the function should be changed to reflect the fact it actually changes system state (as in: exits the current motion mode if something is wrong), or it should only implement the actual check and leave acting based on the results to the caller.
Context: #213.
Current implementation:
https://github.com/Yaskawa-Global/motoros2/blob/10d8f00317c5d4ef7960627962337bf72e2ba817/src/MotionControl.c#L1591-L1608
Either the name of the function should be changed to reflect the fact it actually changes system state (as in: exits the current motion mode if something is wrong), or it should only implement the actual check and leave acting based on the results to the caller.