master/device.c
changeset 1029 61ffe5f22306
parent 1011 a0759d0dded4
child 1040 d2527675cdd5
--- a/master/device.c	Wed Jun 18 12:49:11 2008 +0000
+++ b/master/device.c	Wed Jun 18 13:33:50 2008 +0000
@@ -421,7 +421,7 @@
 
 /*****************************************************************************/
 
-/** Opens the network device and makes the master enter IDLE mode.
+/** Opens the network device and makes the master enter IDLE phase.
  *
  * \return 0 on success, else < 0
  * \ingroup DeviceInterface
@@ -433,8 +433,8 @@
         return -1;
     }
 
-    if (ec_master_enter_idle_mode(device->master)) {
-        EC_ERR("Failed to enter idle mode!\n");
+    if (ec_master_enter_idle_phase(device->master)) {
+        EC_ERR("Failed to enter IDLE phase!\n");
         return -1;
     }
 
@@ -443,14 +443,14 @@
 
 /*****************************************************************************/
 
-/** Makes the master leave IDLE mode and closes the network device.
+/** Makes the master leave IDLE phase and closes the network device.
  *
  * \return 0 on success, else < 0
  * \ingroup DeviceInterface
  */
 void ecdev_close(ec_device_t *device /**< EtherCAT device */)
 {
-    ec_master_leave_idle_mode(device->master);
+    ec_master_leave_idle_phase(device->master);
 
     if (ec_device_close(device))
         EC_WARN("Failed to close device!\n");