diff -r 3b7eec329112 -r 8fede404c01f master/ethernet.c --- a/master/ethernet.c Wed Oct 25 16:53:17 2006 +0000 +++ b/master/ethernet.c Thu Oct 26 16:29:26 2006 +0000 @@ -629,8 +629,7 @@ if (!eoe->slave) EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); else { - eoe->slave->requested_state = EC_SLAVE_STATE_OP; - eoe->slave->error_flag = 0; + ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP); } return 0; } @@ -652,8 +651,7 @@ if (!eoe->slave) EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); else { - eoe->slave->requested_state = EC_SLAVE_STATE_INIT; - eoe->slave->error_flag = 0; + ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP); } return 0; }