diff --git a/DiagnosticTask.c b/DiagnosticTask.c index 2069eed..d89977e 100644 --- a/DiagnosticTask.c +++ b/DiagnosticTask.c @@ -402,7 +402,7 @@ void set_NoBitsDTC(tDiagnostic *env, bool noBitsDTC) { // Ошибки DTC void set_Dtc_state_error(tDiagnostic *env) { if (osMutexAcquire(env->access, 1000) == osOK) { - memcpy(&dtc_state_error, &rtDW.dtc_state_error_model, sizeof(rtDW.dtc_state_error_model)); + memcpy(&dtc_state_error, &rtY.dtc_state_error_model, sizeof(dtc_state_error)); osMutexRelease(env->access); } else { LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error set_Dtc_state_error");