From c5413f81e297a408022f361a8359a84048991be3 Mon Sep 17 00:00:00 2001 From: Jannik Becher Date: Sun, 10 Aug 2025 09:54:37 +0000 Subject: [PATCH] Set direction in syncManager when configuring it. This is needed when you configured your pdos without the ecrt_slave_config_pdos function. --- fake_lib/fakeethercat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fake_lib/fakeethercat.cpp b/fake_lib/fakeethercat.cpp index 9894b98c..b1bd8b13 100644 --- a/fake_lib/fakeethercat.cpp +++ b/fake_lib/fakeethercat.cpp @@ -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; }