Commit 9968e820 authored by 何锐's avatar 何锐

feat:震动报警与轮动报警触发后本步不会消失

parent f1ef53db
......@@ -4879,15 +4879,7 @@ void RotationAlarm(void)
{
if(RotationAlarmMode == 1) //轮速报警模式
{
if(DISIN)
{
if(RotationAlarmFlag == 1)
{
RotationAlarmFlag = 0;
Display_TFT_Clear();
}
}
else
if(DISIN == 0)
{
step_check = 1;
RotationAlarmFlag = 1;
......@@ -4896,18 +4888,9 @@ void RotationAlarm(void)
}
else //震动报警模式
{
if(DISIN)
{
if(VibrationAlarmFlag == 1)
{
VibrationAlarmFlag = 0;
Display_TFT_Clear();
}
}
else
if(DISIN == 0)
{
step_check = 1;
VibrationAlarmFlag = 1;
TFT_LCD_Draw_Bmp(5,25,( uint8_t * )gImage_Alarm_09_Word0X51_Y261);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment