Обновление

This commit is contained in:
cfif 2025-12-12 15:23:51 +03:00
parent d2feacd525
commit 6d9cc4c827
2 changed files with 32 additions and 6 deletions

View File

@ -562,6 +562,14 @@ lin_event_id_t Lin0_Scheduler(tLinTaskActuator *env) {
}
} else {
env->linStateActuator[i].error_connect = 1;
if (env->linCommandActuator[i].BUS_ADR == 0x20) {
for (uint8_t j = 0; j < LIN0_ISSR_ALL; ++j) {
env->linStateActuator[j].error_connect = 1;
}
}
// return ret;
}
@ -580,10 +588,17 @@ lin_event_id_t Lin0_Scheduler(tLinTaskActuator *env) {
env->linCommandActuator[i].BUS_ADR,
env->linCommandActuator[i].POS);
// if (ret == LIN_TX_COMPLETED) {
// } else {
if (ret == LIN_TX_COMPLETED) {
} else {
env->linStateActuator[i].error_connect = 1;
if (env->linCommandActuator[i].BUS_ADR == 0x20) {
for (uint8_t j = 0; j < LIN0_ISSR_ALL; ++j) {
env->linStateActuator[j].error_connect = 1;
}
}
// return ret;
// }
}
if (env->linCommandActuator[i].BUS_ADR == 0x20) {
break;
@ -605,10 +620,17 @@ lin_event_id_t Lin0_Scheduler(tLinTaskActuator *env) {
env->linCommandActuator[i].Speed_SET,
env->linCommandActuator[i].Coils_Stop_SET);
// if (ret == LIN_TX_COMPLETED) {
// } else {
if (ret == LIN_TX_COMPLETED) {
} else {
env->linStateActuator[i].error_connect = 1;
if (env->linCommandActuator[i].BUS_ADR == 0x20) {
for (uint8_t j = 0; j < LIN0_ISSR_ALL; ++j) {
env->linStateActuator[j].error_connect = 1;
}
}
// return ret;
// }
}
if (env->linCommandActuator[i].BUS_ADR == 0x20) {
break;
@ -686,6 +708,7 @@ lin_event_id_t Lin0_Scheduler(tLinTaskActuator *env) {
} else {
env->linStateActuator[i].error_connect = 1;
// return ret;
}
@ -693,6 +716,7 @@ lin_event_id_t Lin0_Scheduler(tLinTaskActuator *env) {
}
} else {
env->linStateActuator[i].error_connect = 1;
// return ret;
}
}

View File

@ -388,6 +388,8 @@ typedef struct {
uint8_t ParitySlave;
uint8_t Version_CFR;
uint8_t error_connect;
} tLinStateFullActuator;
typedef struct {