Allow EEPROM writing when slave has error flag set.
authorFlorian Pose <fp@igh-essen.com>
Tue, 18 Sep 2007 14:17:49 +0000
changeset 729 3aed091b2663
parent 728 f1d6cfa28635
child 730 226fe5065cf2
Allow EEPROM writing when slave has error flag set.
master/fsm_master.c
--- a/master/fsm_master.c	Tue Sep 18 14:16:26 2007 +0000
+++ b/master/fsm_master.c	Tue Sep 18 14:17:49 2007 +0000
@@ -329,8 +329,8 @@
         up(&master->eeprom_sem);
 
         slave = request->slave;
-        if (slave->online_state == EC_SLAVE_OFFLINE || slave->error_flag) {
-            EC_ERR("Discarding EEPROM data, slave %i not ready.\n",
+        if (slave->online_state == EC_SLAVE_OFFLINE) {
+            EC_ERR("Discarding EEPROM data, slave %i offline.\n",
                     slave->ring_position);
             request->state = EC_REQUEST_FAILURE;
             wake_up(&master->eeprom_queue);