From e8e995d0cdb042dd142047351c5faba9d17e34c2 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 12 Sep 2024 15:25:02 +0800 Subject: [PATCH] =?UTF-8?q?device=20reset=E4=B8=8A=E6=8A=A5=E5=8C=85?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=A4=8D=E4=BD=8D=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usrc/app_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usrc/app_main.cpp b/usrc/app_main.cpp index e535a01..f32c76b 100644 --- a/usrc/app_main.cpp +++ b/usrc/app_main.cpp @@ -139,7 +139,8 @@ void umain() { SysMgr::ins()->initedFinished(); SysMgr::ins()->dumpSysInfo(); ZLOGI(TAG, "="); - zcanbus_send_report(kreport_device_reset, NULL, 0, 100); + uint8_t resetReason = SysMgr::ins()->chipGetResetReason(); + zcanbus_send_report(kreport_device_reset, &resetReason, 1, 100); MX_IWDG_Init(); while (true) { osDelay(30);