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);