guohui hai 1 ano
pai
achega
b199cfb14a
Modificáronse 2 ficheiros con 5 adicións e 4 borrados
  1. 4 4
      pro/src/sys.c
  2. 1 0
      pro/src/upg.c

+ 4 - 4
pro/src/sys.c

@@ -1414,12 +1414,12 @@ int sys_wdog_en(int flag)
 static void sig_handler(int signo)
 {
     LOGD("___sig_handler, signo: %d\n", signo);
-    wdog_enable(0);
+    sys_wdog_en(0);
 }
 static void exit_handler(void)
 {
     LOGD("___exit_handler\n");
-    wdog_enable(0);
+    sys_wdog_en(0);
 }
 static void sig_init(void)
 {
@@ -1746,7 +1746,7 @@ int sys_init(void)
 
 int sys_exit(void)
 {
-    abort();
-    //exit(1);
+    //abort();
+    exit(0);
     return 0;
 }

+ 1 - 0
pro/src/upg.c

@@ -4,6 +4,7 @@
 #include <sys/msg.h>
 #include "elog.h"
 #include "upg.h"
+#include "sys.h"
 #include "file.h"
 #include "thread.h"
 #include "modbus_handle.h"