1
0
Fork 0

fixed toggle bit in CO_Node_Guarding.c

This commit is contained in:
Janez 2023-10-06 14:26:17 +02:00 committed by GitHub
parent b8bbd0169c
commit 1866d33807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,10 +112,10 @@ void CO_nodeGuardingSlave_process(CO_nodeGuardingSlave_t *ngs,
ngs->CANtxBuff->data[0] = (uint8_t) NMTstate;
if (ngs->toggle) {
ngs->CANtxBuff->data[0] |= 0x80;
ngs->toggle = 1;
ngs->toggle = 0;
}
else {
ngs->toggle = 0;
ngs->toggle = 1;
}
CO_CANsend(ngs->CANdevTx, ngs->CANtxBuff);