mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 09:07:24 +08:00
Fixed sdoUpload().
This commit is contained in:
@@ -384,7 +384,7 @@ void MasterDevice::sdoDownload(ec_ioctl_slave_sdo_download_t *data)
|
||||
|
||||
void MasterDevice::sdoUpload(ec_ioctl_slave_sdo_upload_t *data)
|
||||
{
|
||||
if (ioctl(fd, EC_IOCTL_SLAVE_SDO_UPLOAD, &data) < 0) {
|
||||
if (ioctl(fd, EC_IOCTL_SLAVE_SDO_UPLOAD, data) < 0) {
|
||||
stringstream err;
|
||||
err << "Failed to upload Sdo: ";
|
||||
if (errno == EIO && data->abort_code) {
|
||||
|
||||
Reference in New Issue
Block a user