Browse Source

update

master
zhaohe 2 years ago
parent
commit
dc6e71f6aa
  1. 2
      chip/zcan_irq_dispatcher.cpp
  2. 2
      chip/ztim.cpp

2
chip/zcan_irq_dispatcher.cpp

@ -80,7 +80,7 @@ void ZCanIRQDispatcher::regListener(ZCanIRQListener *listener) {
return;
}
}
ZASSERT(0);
ZEARLY_ASSERT(0);
}
ZCanIRQDispatcher &ZCanIRQDispatcher::instance() {

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

Loading…
Cancel
Save