master/master.c
changeset 1023 7b8961141042
parent 1022 8e49b519e6ba
child 1024 fef0b1953770
equal deleted inserted replaced
1022:8e49b519e6ba 1023:7b8961141042
  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;