From 2dd0ff8d44f31d2865d8612517078f2cc74f9c6a Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Fri, 11 Oct 2024 16:21:44 +0200 Subject: [PATCH] Fixed check of non-zero bit offset. --- fake_lib/fakeethercat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fake_lib/fakeethercat.cpp b/fake_lib/fakeethercat.cpp index 4932d588..ee8a21cb 100644 --- a/fake_lib/fakeethercat.cpp +++ b/fake_lib/fakeethercat.cpp @@ -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;