Minor changes.
authorFlorian Pose <fp@igh-essen.com>
Thu, 13 Mar 2008 12:31:09 +0000
changeset 867 93a0180ee938
parent 866 88464a0850f7
child 868 aaf175ef0171
Minor changes.
examples/mini/mini.c
--- a/examples/mini/mini.c	Thu Mar 06 10:36:27 2008 +0000
+++ b/examples/mini/mini.c	Thu Mar 13 12:31:09 2008 +0000
@@ -169,7 +169,7 @@
 {
     switch (ecrt_sdo_request_state(sdo)) {
         case EC_SDO_REQUEST_UNUSED: // request was not used yet
-            ecrt_sdo_request_read(sdo);
+            ecrt_sdo_request_read(sdo); // trigger first read
             break;
         case EC_SDO_REQUEST_BUSY:
             printk(KERN_INFO PFX "Still busy...\n");
@@ -177,11 +177,11 @@
         case EC_SDO_REQUEST_SUCCESS:
             printk(KERN_INFO PFX "Sdo value: 0x%04X\n",
                     EC_READ_U16(ecrt_sdo_request_data(sdo)));
-            ecrt_sdo_request_read(sdo);
+            ecrt_sdo_request_read(sdo); // trigger next read
             break;
         case EC_SDO_REQUEST_ERROR:
             printk(KERN_INFO PFX "Failed to read Sdo!\n");
-            ecrt_sdo_request_read(sdo);
+            ecrt_sdo_request_read(sdo); // retry reading
             break;
     }
 }