Allow EEPROM writing when slave has error flag set.

This commit is contained in:
Florian Pose 2007-09-18 14:17:49 +00:00
parent abf266f384
commit 56949fa400
1 changed files with 2 additions and 2 deletions

View File

@ -329,8 +329,8 @@ int ec_fsm_master_action_process_eeprom(
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);