加了个三次报警多次关阀
This commit is contained in:
parent
0030ef5fd6
commit
8da8105119
|
@ -335,14 +335,20 @@ int main (void)
|
|||
SysControl.status = kAlarmEvent;
|
||||
|
||||
Flash_Write_Record (kRecordAlarm); // 写入flash报警信息
|
||||
EMV_CLOSE_VALVE;
|
||||
relay_state_flag = 1;
|
||||
LED_R_ALARM;
|
||||
BEEP_ALARM;
|
||||
|
||||
relay_state_flag = 1;
|
||||
EMV_CLOSE_VALVE;
|
||||
LOG_D("EMV_CLOSE_VALVE 1");
|
||||
#if (IOT_MODULE_SWITCH == 1)
|
||||
Nt26k_Send_Event (kNt26kAlarmEvent);
|
||||
#endif
|
||||
rt_thread_mdelay(5000);
|
||||
LOG_D("EMV_CLOSE_VALVE 2");
|
||||
EMV_CLOSE_VALVE;
|
||||
rt_thread_mdelay(5000);
|
||||
LOG_D("EMV_CLOSE_VALVE 3");
|
||||
EMV_CLOSE_VALVE;
|
||||
}
|
||||
else if (received_event & Get_Sys_Event_Flag (kAlarmRcyEvent)) // 报警恢复
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue