From eb70992a9ddd6101f10c91e7af047ba6b580cc06 Mon Sep 17 00:00:00 2001 From: Melchior Franz Date: Mon, 18 Oct 2021 05:48:51 +0200 Subject: [PATCH] PDOEnable: clear "invalid" bit in COBID, not everything but that bit --- src/pdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdo.c b/src/pdo.c index 9945ef00..7f1cad67 100644 --- a/src/pdo.c +++ b/src/pdo.c @@ -837,7 +837,7 @@ PDOEnable (CO_Data * d, UNS8 pdoNum) if(!d->firstIndex->PDO_TRS) return; offsetObjdict = (UNS16) (d->firstIndex->PDO_TRS + pdoNum); - WRITE_UNS32(d->objdict, offsetObjdict, 1, READ_UNS32(d->objdict, offsetObjdict, 1) & 0x80000000); + WRITE_UNS32(d->objdict, offsetObjdict, 1, READ_UNS32(d->objdict, offsetObjdict, 1) & ~0x80000000); } void