Moved state request on PDO registration to slave.c.
--- a/master/domain.c Sun Mar 04 16:15:23 2007 +0000
+++ b/master/domain.c Mon Mar 05 09:10:02 2007 +0000
@@ -251,8 +251,6 @@
list_add_tail(&data_reg->list, &domain->data_regs);
- ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
-
return 0;
}
@@ -329,8 +327,6 @@
list_add_tail(&data_reg->list, &domain->data_regs);
- ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
-
return 0;
}
--- a/master/slave.c Sun Mar 04 16:15:23 2007 +0000
+++ b/master/slave.c Mon Mar 05 09:10:02 2007 +0000
@@ -597,6 +597,8 @@
fmmu->logical_start_address = 0;
slave->fmmu_count++;
+
+ ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
return 0;
}