Обновление
This commit is contained in:
parent
8e89210038
commit
253263fa5c
|
|
@ -44,9 +44,9 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
||||||
|
|
||||||
SystemDelayMs(1000);
|
SystemDelayMs(1000);
|
||||||
|
|
||||||
if (osMutexAcquire(env->adcTask1.access, 1000) == osOK) {
|
if (osMutexAcquire(env->adcTask0.access, 1000) == osOK) {
|
||||||
temp1 = get_temperature_fast(env->adcTask1.ADC_Data[0], fast_lookup_Incar, 512);
|
temp1 = get_temperature_fast(env->adcTask0.ADC_Data[0], fast_lookup_Incar, 512);
|
||||||
osMutexRelease(env->adcTask1.access);
|
osMutexRelease(env->adcTask0.access);
|
||||||
LoggerFormatInfo(&env->slog.logger, LOG_TASK_ARB, "Temp1 = %d", temp1)
|
LoggerFormatInfo(&env->slog.logger, LOG_TASK_ARB, "Temp1 = %d", temp1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue