Обновление

This commit is contained in:
cfif 2026-04-24 16:38:53 +03:00
parent 151702e35a
commit 0334df623e
2 changed files with 22 additions and 1 deletions

View File

@ -578,6 +578,11 @@ 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) {
lin_event_id_t ret = LIN_NO_EVENT;
@ -590,6 +595,22 @@ static lin_event_id_t Lin_Scheduler(tLinTaskActuator *env, uint8_t numAct) {
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,

View File

@ -10,7 +10,7 @@
#include "LinIO.h"
#include "LoggerInterface.h"
#define LOG_LIN_ACTUATOR 0
#define LOG_LIN_ACTUATOR 1
#define LOG_LIN1_ACTUATOR 1
#define LOG_LIN2_ACTUATOR 1
#define LOG_LIN3_ACTUATOR 1