Fixed txErrors variable name
This commit is contained in:
parent
0dd1a08118
commit
f407bc6d05
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ void CO_CANmodule_process(CO_CANmodule_t *CANmodule) {
|
|||
/* tx bus warning or passive */
|
||||
if (txErrors >= 128) {
|
||||
status |= CO_CAN_ERRTX_WARNING | CO_CAN_ERRTX_PASSIVE;
|
||||
} else if (rxErrors >= 96) {
|
||||
} else if (txErrors >= 96) {
|
||||
status |= CO_CAN_ERRTX_WARNING;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue