Skip to content

Commit

Permalink
Merge pull request #4 from drehscheibe/master
Browse files Browse the repository at this point in the history
PDOEnable: clear "invalid" bit in COBID, not everything but that bit
  • Loading branch information
ljessendk authored Oct 18, 2021
2 parents a95b22a + eb70992 commit bebf332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bebf332

Please sign in to comment.