| | |
| | | //Ë«ÖØÖ¸Õ룺ָÏòÖ¸ÕëµÄÖ¸Õ룬Èç¹ûÐè¸Ä±äÖ¸ÕëµØÖ·µÄÖµ£¬Ôò¿ÉÓÃË«ÖØÖ¸Õë |
| | | 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) |
| | | { |
| | | alarm_list_cnt++; |
| | |
| | | } |
| | | else |
| | | { |
| | | ALARM_NODE_T * tail = *ppList; |
| | | //ÅжÏÁ´±íÖÐÊÇ·ñÒѾ´æÔڸñ¨¾¯id£¬ÒѾ´æÔÚ²»ÔÙ²åÈëÁ´±í |
| | | do{ |
| | | if(now_ptr->list_data == alarm_id){ |
| | | return; |
| | | }else{ |
| | | now_ptr = now_ptr->alarm_list_next; |
| | | } |
| | | |
| | | }while(now_ptr != NULL); |
| | | |
| | | tail = *ppList; |
| | | while(tail->alarm_list_next) |
| | | tail = tail->alarm_list_next; |
| | | tail->alarm_list_next = Alarm_List_Node_Add(alarm_id); |