Fixed check of non-zero bit offset.
This commit is contained in:
parent
4a757cedc2
commit
2dd0ff8d44
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue