Fixed check of non-zero bit offset.

This commit is contained in:
Florian Pose
2024-10-11 16:21:44 +02:00
parent 4a757cedc2
commit 2dd0ff8d44

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;