Обновление

This commit is contained in:
cfif 2026-04-27 16:46:33 +03:00
parent 895070f2c0
commit 53eba5aff8
2 changed files with 9 additions and 32 deletions

View File

@ -109,7 +109,7 @@ void GetLin123CallbackHandler(tLinData *env, uint8_t u8LinIndex, void *state) {
static lin_event_id_t SEND_ACTUATOR_COM_x(tLinIO *linIo, uint8_t COM_ADR) {
lin_event_id_t res = linIo->runCommand(linIo->env, COM_ADR, 40);
SystemDelayMs(30);
// SystemDelayMs(30);
return res;
}
@ -580,10 +580,6 @@ static bool setState20(tLinTaskActuator *env, bool isError, uint8_t index) {
(numAct == 3 && LOG_LIN3_ACTUATOR == 1) )
#endif
bool a1;
bool a2;
bool a3;
static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
@ -594,31 +590,8 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
//--------------------------------------BROADCAST---------------------------------------------------------
//--------------------------------------BROADCAST---------------------------------------------------------
//--------------------------------------BROADCAST---------------------------------------------------------
if (env->linCommandActuator[0].COM == LIN_ACT_CFR_MOD) {
if ((numAct == 1) && (a1 == false)) {
a1 = true;
LoggerFormatInfo(LOGGER, env->SIGN_LOG,
"----------------------START----ACT1--------------------------------------------------------",
1)
}
if ((numAct == 2) && (a2 == false)) {
a2 = true;
LoggerFormatInfo(LOGGER, env->SIGN_LOG,
"----------------------START----ACT2--------------------------------------------------------",
1)
}
if ((numAct == 3) && (a3 == false)) {
a3 = true;
LoggerFormatInfo(LOGGER, env->SIGN_LOG,
"----------------------START----ACT3--------------------------------------------------------",
1)
}
#if (LOG_LIN_ACTUATOR == 1)
if (IS_LOGGING_ENABLED(numAct)) {
LoggerFormatInfo(LOGGER, env->SIGN_LOG,
@ -652,6 +625,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
setState20(env, true, 0);
}
SystemDelayMs(30);
}
@ -690,7 +664,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
setState20(env, true, 0);
}
SystemDelayMs(30);
}
@ -753,6 +727,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
}
SystemDelayMs(30);
}
} else {
@ -813,6 +788,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
setState20(env, true, i);
}
SystemDelayMs(30);
}
}
@ -867,7 +843,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
}
SystemDelayMs(30);
}
}
@ -951,6 +927,7 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
}
SystemDelayMs(30);
}
}

View File

@ -12,8 +12,8 @@
#include "LoggerInterface.h"
#define LOG_LIN_ACTUATOR 1
#define LOG_LIN1_ACTUATOR 0
#define LOG_LIN2_ACTUATOR 0
#define LOG_LIN1_ACTUATOR 1
#define LOG_LIN2_ACTUATOR 1
#define LOG_LIN3_ACTUATOR 1