equal
deleted
inserted
replaced
583 throw MasterDeviceException(err); |
583 throw MasterDeviceException(err); |
584 } |
584 } |
585 } |
585 } |
586 } |
586 } |
587 |
587 |
|
588 /****************************************************************************/ |
|
589 |
|
590 void MasterDevice::setIpParam(ec_ioctl_slave_eoe_ip_t *data) |
|
591 { |
|
592 if (ioctl(fd, EC_IOCTL_SLAVE_EOE_IP_PARAM, data) < 0) { |
|
593 if (errno == EIO && data->result) { |
|
594 throw MasterDeviceEoeException(data->result); |
|
595 } else { |
|
596 stringstream err; |
|
597 err << "Failed to set IP parameters: " << strerror(errno); |
|
598 throw MasterDeviceException(err); |
|
599 } |
|
600 } |
|
601 } |
|
602 |
588 /*****************************************************************************/ |
603 /*****************************************************************************/ |