soem_interface icon indicating copy to clipboard operation
soem_interface copied to clipboard

Shutdown state change fix

Open edisimo opened this issue 1 year ago • 0 comments

My implementation of soem_interface approximately half of the times faced a problem during shutdown, which caused the program to stall inside of waitForStateLocked when the program had been terminated. It was always waiting for the full amount of retries and yet the first slave was unable to reach the wanted state. By adding this one line of code (setStateLocked) after each retry, the slave always seemed to reach the desired state after max 1 retry.

edisimo avatar Jun 21 '24 11:06 edisimo