<div dir="ltr">when alias is used EC_FIND_SLAVE fails to find slave at position greater than 0<br><div><br>From 1349cabe197e84208a196d9186111551f24e25f5 Mon Sep 17 00:00:00 2001<br>From: raz <<a href="mailto:raziebe@gmail.com">raziebe@gmail.com</a>><br>Date: Mon, 27 Apr 2015 11:51:23 +0300<br>Subject: [PATCH] alias search incorrect<br><br>---<br> drivers/misc/ethercat_master/master/master.c | 6 +++---<br><br>diff --git a/drivers/misc/ethercat_master/master/master.c b/drivers/misc/ethercat_master/master/master.c<br>index 34cc1b5..d9ec5b3 100644<br>--- a/drivers/misc/ethercat_master/master/master.c<br>+++ b/drivers/misc/ethercat_master/master/master.c<br>@@ -1569,9 +1569,9 @@ void ec_master_attach_slave_configs(<br> } \<br> if (slave == master->slaves + master->slave_count) \<br> return NULL; \<br>- } \<br>- \<br>- slave += position; \<br>+ } else{ \<br>+ slave += position; \<br>+ } \<br> if (slave < master->slaves + master->slave_count) { \<br> return slave; \<br> } else { \<br>-- <br>1.9.1<br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><a href="https://sites.google.com/site/ironspeedlinux/" target="_blank">https://sites.google.com/site/ironspeedlinux/</a></div></div></div>
</div></div>