From e9b6f9a8f08d8f10ad2112d8db8ad783acce73af Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 21 Jul 2026 17:35:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20getCmdBusADCData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/LoggerToSerialPort.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/LoggerToSerialPort.c b/Src/LoggerToSerialPort.c index 5132cbf..11351f4 100644 --- a/Src/LoggerToSerialPort.c +++ b/Src/LoggerToSerialPort.c @@ -178,7 +178,7 @@ static void LoggerCanToSerialPort_Logging( size_t pkt_size = data_size + 2; // данные + CRC + 0x03 // Отправка -// SerialPortTransmit(env->serialPortIo_VIRT, env->bufLoggerCan, pkt_size, env->timeout); + SerialPortTransmit(env->serialPortIo_VIRT, env->bufLoggerCan, pkt_size, env->timeout); osMutexRelease(env->access); } @@ -281,6 +281,10 @@ static _Noreturn void LogTransmitter_Thread(tLoggerToSerialPort *env) { uint16_t len = env->serialPortIo_VIRT->receive(env->serialPortIo_VIRT->env, env->buf_LOG, sizeof(env->buf_LOG), env->timeoutTransmittedLog); + if (len == 1024) { + asm("nop"); + } + if (len > 0) { len = env->serialPortIo_PHYSIC->transmit(env->serialPortIo_PHYSIC->env, env->buf_LOG, len, env->timeoutTransmittedLog);