Using EC_END.
authorFlorian Pose <fp@igh-essen.com>
Fri, 04 Jul 2008 16:54:26 +0000
changeset 1097 f974ced181f3
parent 1096 a32a102a30db
child 1098 ff5b1722581c
Using EC_END.
master/slave_config.c
--- a/master/slave_config.c	Fri Jul 04 16:53:39 2008 +0000
+++ b/master/slave_config.c	Fri Jul 04 16:54:26 2008 +0000
@@ -512,7 +512,7 @@
     for (i = 0; i < n_syncs; i++) {
         sync_info = &syncs[i];
 
-        if (sync_info->index == 0xff)
+        if (sync_info->index == (uint8_t) EC_END)
             break;
 
         if (sync_info->index >= EC_MAX_SYNC_MANAGERS) {