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