Browse Source

1、修改MAC地址为物理MAC地址,非软MAC固定方式。

liyuezong 1 year ago
parent
commit
f1241a4222
3 changed files with 6 additions and 1 deletions
  1. 2 0
      pro/config/cfg.h
  2. 3 0
      pro/src/app.c
  3. 1 1
      pro/src/sys.c

+ 2 - 0
pro/config/cfg.h

@@ -343,6 +343,8 @@
 
     #define BRD_MAX                             10
 
+    #define SENSOR_ACCESS_NONE
+
 #elif defined PRJ_Malaysia_AC_I3_O1
     #define LANGUAGE 1      // //english
     #define SMPLE_TIME 30   // ms

+ 3 - 0
pro/src/app.c

@@ -2165,6 +2165,9 @@ static void* sensor_thread(void* arg)
                             alarmflag = true;
                         }
                     }
+#ifdef  SENSOR_ACCESS_NONE 
+                    alarmflag = false;
+#endif
                     if (alarmflag)dev_sensor_Alarm_send_message(&__globalDeviceManage, _globalSensorMangerTemp, -1);
                     
 

+ 1 - 1
pro/src/sys.c

@@ -1854,7 +1854,7 @@ int sys_init(void)
     sys_chmod();
     init_hash_table();
 
-    net_init();
+    //net_init();
     ui_init();
     thread_start(THREAD_ID_POLLING, polling_thread, NULL);