Bugfix: Absturz bei unbekannter Klemme.

This commit is contained in:
Florian Pose 2006-03-24 08:56:16 +00:00
parent 8dd5f1b480
commit e84f011468
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ int ec_master_bus_scan(ec_master_t *master /**< EtherCAT-Master */)
// Search for identification in "database"
ident = slave_idents;
while (ident) {
while (ident->type) {
if (unlikely(ident->vendor_id == slave->sii_vendor_id
&& ident->product_code == slave->sii_product_code)) {
slave->type = ident->type;