1
0
Fork 0

Fixed txErrors variable name

This commit is contained in:
temi54c1l8 2024-03-29 13:14:49 +01:00 committed by Janez
parent 0dd1a08118
commit f407bc6d05

View file

@ -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;
}