mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Fixed check of non-zero bit offset.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user