mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-23 02:23:47 +08:00
Set direction in syncManager when configuring it.
This is needed when you configured your pdos without the ecrt_slave_config_pdos function.
This commit is contained in:
@@ -617,6 +617,9 @@ int ecrt_slave_config_sync_manager(
|
||||
ec_watchdog_mode_t watchdog_mode /** Watchdog mode. */
|
||||
)
|
||||
{
|
||||
auto &syncManager = sc->sync_managers[sync_index];
|
||||
syncManager.dir = direction;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user