Removed deprecated ec_slave_validate().
This commit is contained in:
parent
8b8b470eaa
commit
02674c6f50
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue