From fd424aeed7fd56ee83369b2e1a92ef7f913914f0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 1 Jun 2024 22:25:44 +0800 Subject: [PATCH] update --- chip/chip.cpp | 7 ------- components/subcanmodule/zcancmder_subboard_initer.cpp | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/chip/chip.cpp b/chip/chip.cpp index f7c309a..b1119e4 100644 --- a/chip/chip.cpp +++ b/chip/chip.cpp @@ -38,12 +38,5 @@ void chip_init(chip_cfg_t *cfg) { g_debuglight.toggleState(); }, 50); - - ZEARLY_LOGI("SYS", "chip init ok"); - ZEARLY_LOGI("SYS", "= manufacturer : %s", PC_MANUFACTURER); - ZEARLY_LOGI("SYS", "= project name : %s", PC_PROJECT_NAME); - ZEARLY_LOGI("SYS", "= version : %s", PC_VERSION); - ZEARLY_LOGI("SYS", "= freq : %d", HAL_RCC_GetSysClockFreq()); - ZEARLY_LOGI("SYS", "= build time : %s", __DATE__ " " __TIME__); } } \ No newline at end of file diff --git a/components/subcanmodule/zcancmder_subboard_initer.cpp b/components/subcanmodule/zcancmder_subboard_initer.cpp index 7e9bb5c..f40f645 100644 --- a/components/subcanmodule/zcancmder_subboard_initer.cpp +++ b/components/subcanmodule/zcancmder_subboard_initer.cpp @@ -35,12 +35,13 @@ void ZCancmderSubboardIniter::init(cfg_t* cfg) { /******************************************************************************* * NVSINIT * *******************************************************************************/ - +#if PC_NVS_ENABLE if (PC_NVS_ENABLE) { ZNVS::ins().initialize(PC_NVS_CONFIG_FLASH_SECTOR); nvs_init_cb(); ZNVS::ins().init_config(); } +#endif auto zcanCmder_cfg = zcanCmder.createCFG(m_cfg.deviceId); zcanCmder.init(zcanCmder_cfg);