master/slave_config.c
changeset 1059 38b1630463aa
parent 1055 2be8918682fa
child 1075 94c6e36e0f8d
equal deleted inserted replaced
1058:1c5b19c1ae9d 1059:38b1630463aa
   235     ec_sync_config_t *sync_config;
   235     ec_sync_config_t *sync_config;
   236     const ec_sync_t *sync;
   236     const ec_sync_t *sync;
   237 
   237 
   238     if (!sc->slave)
   238     if (!sc->slave)
   239         return;
   239         return;
   240     
       
   241     
   240     
   242     for (sync_index = 0; sync_index < EC_MAX_SYNCS; sync_index++) {
   241     for (sync_index = 0; sync_index < EC_MAX_SYNCS; sync_index++) {
   243         sync_config = &sc->sync_configs[sync_index];
   242         sync_config = &sc->sync_configs[sync_index];
   244         if ((sync = ec_slave_get_sync(sc->slave, sync_index))) {
   243         if ((sync = ec_slave_get_sync(sc->slave, sync_index))) {
   245             sync_config->dir = ec_sync_default_direction(sync);
   244             sync_config->dir = ec_sync_default_direction(sync);