Merge branch 'fix-fake-bit-offset' into 'stable-1.6'

Fixed check of non-zero bit offset.

Closes #139

See merge request etherlab.org/ethercat!143
This commit is contained in:
Florian Pose
2024-10-11 14:29:14 +00:00

View File

@@ -585,7 +585,7 @@ int ecrt_slave_config_reg_pdo_entry(
{
if (bit_position)
*bit_position = offset.bits;
else if (!offset.bits)
else if (offset.bits)
{
std::cerr << "Pdo Entry is not byte aligned but bit offset is ignored!\n";
return -1;