From 72def895431ad7a08e635b11f3da738e2b2c4618 Mon Sep 17 00:00:00 2001
From: wujiazhi <1147861305@qq.com>
Date: Thu, 13 Jun 2024 11:31:04 +0800
Subject: [PATCH] add lower model test
---
Soft/linked_list.c | 18 +++---------------
1 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/Soft/linked_list.c b/Soft/linked_list.c
index 5dd93b2..1517ba3 100644
--- a/Soft/linked_list.c
+++ b/Soft/linked_list.c
@@ -30,9 +30,7 @@
//˫��ָ�룺ָ��ָ���ָ�룬�����ı�ָ���ַ��ֵ�������˫��ָ��
void Alarm_List_Node_PushBack(ALARM_NODE_T ** ppList,SYS_ALARM_VALVE_T alarm_id)
{
- ALARM_NODE_T * tail, * now_ptr;
-
- if(alarm_id != ALARM_ID_NORMAL)
+ if(alarm_id != AV_NORMAL)
{
alarm_list_cnt++;
if(*ppList == NULL)
@@ -41,17 +39,7 @@
}
else
{
- //�ж��������Ƿ��Ѿ����ڸñ���id���Ѿ����ڲ��ٲ�������
- do{
- if(now_ptr->list_data == alarm_id){
- return;
- }else{
- now_ptr = now_ptr->alarm_list_next;
- }
-
- }while(now_ptr != NULL);
-
- tail = *ppList;
+ ALARM_NODE_T * tail = *ppList;
while(tail->alarm_list_next)
tail = tail->alarm_list_next;
tail->alarm_list_next = Alarm_List_Node_Add(alarm_id);
@@ -84,7 +72,7 @@
//�������м�ɾ��
void Alarm_List_Node_Deleted(ALARM_NODE_T ** ppHeadList,SYS_ALARM_VALVE_T alarm_id)
{
- if(alarm_id != ALARM_ID_NORMAL)
+ if(alarm_id != AV_NORMAL)
{
ALARM_NODE_T * last_ptr,* now_ptr;
if(*ppHeadList == NULL)
--
Gitblit v1.9.3