diff --git a/master/slave.c b/master/slave.c index 30739f14..7d6050d4 100644 --- a/master/slave.c +++ b/master/slave.c @@ -1199,28 +1199,6 @@ ec_sync_t *ec_slave_get_pdo_sync( /*****************************************************************************/ -/** - \return 0 in case of success, else < 0 -*/ - -int ec_slave_validate(const ec_slave_t *slave, /**< EtherCAT slave */ - uint32_t vendor_id, /**< vendor ID */ - uint32_t product_code /**< product code */ - ) -{ - if (vendor_id != slave->sii.vendor_id || - product_code != slave->sii.product_code) { - EC_ERR("Invalid slave type at position %u:\n", slave->ring_position); - EC_ERR(" Requested: 0x%08X 0x%08X\n", vendor_id, product_code); - EC_ERR(" Found: 0x%08X 0x%08X\n", - slave->sii.vendor_id, slave->sii.product_code); - return -1; - } - return 0; -} - -/*****************************************************************************/ - /** Counts the total number of Sdos and entries in the dictionary. */ diff --git a/master/slave.h b/master/slave.h index b07980e7..50b44be6 100644 --- a/master/slave.h +++ b/master/slave.h @@ -220,7 +220,6 @@ int ec_slave_fetch_sii_pdos(ec_slave_t *, const uint8_t *, size_t, // misc. ec_sync_t *ec_slave_get_pdo_sync(ec_slave_t *, ec_direction_t); -int ec_slave_validate(const ec_slave_t *, uint32_t, uint32_t); void ec_slave_sdo_dict_info(const ec_slave_t *, unsigned int *, unsigned int *); ec_sdo_t *ec_slave_get_sdo(ec_slave_t *, uint16_t);