Исправлена getCmdBusADCData
This commit is contained in:
parent
ec940eb3cf
commit
e9b6f9a8f0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue