robert-burger / libethercat

EtherCAT master library. This library is used to build a deterministic fieldbus network with EtherCAT components.
https://www.dlr.de/rm
Other
20 stars 4 forks source link

ec_set_state returns state instead of result #4

Closed marcfir closed 4 months ago

marcfir commented 4 months ago

The documentation says ec_set_state() returns zero on success. But the return statement is return pec->master_state; which is the reached state.

I assume that the documentation here is not correct?

robert-burger commented 4 months ago

thanks.