From 6f117f0f13e9eed43130dea111c7efda50e83f31 Mon Sep 17 00:00:00 2001 From: cfif Date: Sun, 21 Jun 2026 19:34:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/CanSerialPortFrame.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Src/CanSerialPortFrame.c b/Src/CanSerialPortFrame.c index 2c0666e..141a465 100644 --- a/Src/CanSerialPortFrame.c +++ b/Src/CanSerialPortFrame.c @@ -709,23 +709,6 @@ uint16_t vCanSerialPortFrameTransmit(tCanSerialPortFrameFlagchip *env, uint8_t * uint16_t sent = 0; - - FLEXCAN_ErrorInfoType errInfo; - FLEXCAN_GetErrorInfo(env->CAN_INDEX, &errInfo); - - - uint32_t fltConf = (errInfo.u32ErrorValue & FLEXCAN_ESR1_FLTCONF_MASK) >> FLEXCAN_ESR1_FLTCONF_SHIFT; - - if (fltConf == 1) { // Error Passive - asm("nop"); - } - - - if (fltConf == 3) { - // Текущее состояние — Bus Off - asm("nop"); - } - if (osMutexAcquire(env->access, 1000) == osOK) { env->id = adr;