master/master.c
changeset 129 67b6e534db4b
parent 120 e713e7420c4d
child 130 69c2645300ee
equal deleted inserted replaced
128:48fe0a7a0288 129:67b6e534db4b
   462         // Fetch all slave information
   462         // Fetch all slave information
   463         if (ec_slave_fetch(slave)) return -1;
   463         if (ec_slave_fetch(slave)) return -1;
   464 
   464 
   465         // Search for identification in "database"
   465         // Search for identification in "database"
   466         ident = slave_idents;
   466         ident = slave_idents;
   467         while (ident) {
   467         while (ident->type) {
   468             if (unlikely(ident->vendor_id == slave->sii_vendor_id
   468             if (unlikely(ident->vendor_id == slave->sii_vendor_id
   469                          && ident->product_code == slave->sii_product_code)) {
   469                          && ident->product_code == slave->sii_product_code)) {
   470                 slave->type = ident->type;
   470                 slave->type = ident->type;
   471                 break;
   471                 break;
   472             }
   472             }