equal
deleted
inserted
replaced
1346 |
1346 |
1347 ec_slave_config_init(sc, master, |
1347 ec_slave_config_init(sc, master, |
1348 alias, position, vendor_id, product_code); |
1348 alias, position, vendor_id, product_code); |
1349 |
1349 |
1350 // try to find the addressed slave |
1350 // try to find the addressed slave |
1351 ec_slave_config_attach(sc); |
1351 if (!ec_slave_config_attach(sc)) |
1352 ec_slave_config_load_default_assignment(sc); |
1352 ec_slave_config_load_default_assignment(sc); |
1353 |
1353 |
1354 list_add_tail(&sc->list, &master->configs); |
1354 list_add_tail(&sc->list, &master->configs); |
1355 } |
1355 } |
1356 |
1356 |
1357 return sc; |
1357 return sc; |