Reset AL states on link down.
authorFlorian Pose <fp@igh-essen.com>
Fri, 26 Feb 2010 18:22:02 +0100
changeset 1830 ef09f0ea0c4c
parent 1829 853bfd38ef5d
child 1831 1875b9fea0ba
Reset AL states on link down.
TODO
master/fsm_master.c
--- a/TODO	Thu Feb 25 15:38:14 2010 +0100
+++ b/TODO	Fri Feb 26 18:22:02 2010 +0100
@@ -27,7 +27,6 @@
 * Output warning when send_ext() is called in illegal context.
 * Output hexadecimal values in 'ethercat xml'.
 * Add native drivers from 2.6.24 up to 2.6.31.
-* Reset al_states on link down.
 * Implement indent in 'ethercat ma'
 * Add master index to log messages.
 * Implement 0xXXXX:YY format for specifying SDOs.
--- a/master/fsm_master.c	Thu Feb 25 15:38:14 2010 +0100
+++ b/master/fsm_master.c	Fri Feb 26 18:22:02 2010 +0100
@@ -208,6 +208,7 @@
         ec_master_clear_eoe_handlers(master);
 #endif
         ec_master_clear_slaves(master);
+        fsm->slave_states = 0x00;
     }
     fsm->link_state = master->main_device.link_state;