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

Commit 50acf15

Browse files
committed
Fix error string when sdo read fails
1 parent 16220c4 commit 50acf15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

march_hardware/src/ethercat/sdo_interface.cpp

+1-1
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)