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