fix:修復幾個bug

This commit is contained in:
2024-07-05 21:29:03 +08:00
parent be37b5d206
commit 336d1bc100
4 changed files with 43 additions and 40 deletions

View File

@@ -34,6 +34,7 @@
********************************************************************************************************************/
#include "zf_common_headfile.h"
#include "gl_headfile.h"
#include "by_button.h"
#include "by_buzzer.h"
#include "by_frame.h"
@@ -285,8 +286,8 @@ void EXTI15_10_IRQHandler(void)
void TIM1_UP_IRQHandler(void)
{
if (TIM_GetITStatus(TIM1, TIM_IT_Update) != RESET) {
by_frame_send(&tiny_frame_param[0].u32);
TIM_ClearITPendingBit(TIM1, TIM_IT_Update);
by_frame_send(&tiny_frame_param[0].u32);
by_led_warn_blink();
}
}