Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 3876beb

Browse files
authored
Merge pull request #289 from project-march/fix/sdo-read-error-string
Fix error string when sdo read fails
2 parents 16220c4 + 50acf15 commit 3876beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

march_hardware/src/ethercat/sdo_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int SdoInterfaceImpl::read(uint16_t slave, uint16_t index, uint8_t sub, int& val
2424
const int working_counter = ec_SDOread(slave, index, sub, FALSE, &val_size, value, EC_TIMEOUTRXM);
2525
if (working_counter == 0)
2626
{
27-
ROS_FATAL("sdo_read: Error occurred when writing: slave %i, reg 0x%X, sub index %i", slave, index, sub);
27+
ROS_FATAL("sdo_read: Error occurred when reading: slave %i, reg 0x%X, sub index %i", slave, index, sub);
2828
}
2929
return working_counter;
3030
}

0 commit comments

Comments
 (0)