Обновление

This commit is contained in:
cfif 2025-12-23 15:22:57 +03:00
parent c37410b497
commit f87be212d5
1 changed files with 3 additions and 0 deletions

View File

@ -34,12 +34,15 @@ static void Mma_InitSubSystems(tMma *env) {
RtcSet(&env->rtcs->rtcI0, &set_timestamp); RtcSet(&env->rtcs->rtcI0, &set_timestamp);
Mma_InitComIntLog(env); Mma_InitComIntLog(env);
env->flash->nf_storage_param.logger = &env->slog.logger;
env->flash->nf_storage_calib.logger = &env->slog.logger;
LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Initialization of subsystems") LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Initialization of subsystems")
bool result = DeviceStorage_Init(&env->storage, &env->flash->interface_calib, &env->flash->interface_param, bool result = DeviceStorage_Init(&env->storage, &env->flash->interface_calib, &env->flash->interface_param,
&env->slog.logger); &env->slog.logger);
// Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP); // Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);
CommandLine_Init(&env->cli, &env->serialPorts->cliVirtualPortIn_Io, &env->serialPorts->cliVirtualPortOut_Io); CommandLine_Init(&env->cli, &env->serialPorts->cliVirtualPortIn_Io, &env->serialPorts->cliVirtualPortOut_Io);