From dc6e71f6aac60fe6e2a403f790c134bc299769dd Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 24 Sep 2023 21:48:23 +0800 Subject: [PATCH] update --- chip/zcan_irq_dispatcher.cpp | 2 +- chip/ztim.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chip/zcan_irq_dispatcher.cpp b/chip/zcan_irq_dispatcher.cpp index 4010e55..47c25ca 100644 --- a/chip/zcan_irq_dispatcher.cpp +++ b/chip/zcan_irq_dispatcher.cpp @@ -80,7 +80,7 @@ void ZCanIRQDispatcher::regListener(ZCanIRQListener *listener) { return; } } - ZASSERT(0); + ZEARLY_ASSERT(0); } ZCanIRQDispatcher &ZCanIRQDispatcher::instance() { diff --git a/chip/ztim.cpp b/chip/ztim.cpp index a2db727..73fe1f0 100644 --- a/chip/ztim.cpp +++ b/chip/ztim.cpp @@ -76,7 +76,7 @@ void ZTIM::startPWM(uint32_t Channel, float duty) { sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET; sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET; - if (HAL_TIM_PWM_ConfigChannel(&htim8, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) { + if (HAL_TIM_PWM_ConfigChannel(m_htim, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) { Error_Handler(); } HAL_TIM_PWM_Start(m_htim, Channel);