Moved state request on PDO registration to slave.c.
authorFlorian Pose <fp@igh-essen.com>
Mon, 05 Mar 2007 09:10:02 +0000
changeset 609 611d738a1392
parent 608 029d70ceaaf1
child 610 29489a43ecee
Moved state request on PDO registration to slave.c.
master/domain.c
master/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;
 }