mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Make rtipc name configurable
This commit is contained in:
@@ -272,7 +272,15 @@ ec_master_t *ecrt_request_master(
|
||||
return new ec_master();
|
||||
}
|
||||
|
||||
ec_master::ec_master() : rt_ipc(rtipc_create("FakeTaxi", "/tmp/FakeTaxi"))
|
||||
static const char *getName()
|
||||
{
|
||||
if (const auto ans = getenv("FAKE_EC_NAME")) {
|
||||
return ans;
|
||||
}
|
||||
return "FakeTaxi";
|
||||
}
|
||||
|
||||
ec_master::ec_master() : rt_ipc(rtipc_create(getName(), "/tmp/FakeTaxi"))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user