소스 검색

add: airlink,yhm27xx,适配Air8000WU/WN/AB

??? 3 달 전
부모
커밋
e8a1da91b1
2개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      components/airlink/src/luat_airlink.c
  2. 6 1
      luat/modules/luat_lib_pm.c

+ 2 - 2
components/airlink/src/luat_airlink.c

@@ -566,11 +566,11 @@ int luat_airlink_has_wifi(void) {
             has_wifi = 1;
             return 1;
         }
-        if (memcmp("Air8000U\0", model, 9) == 0 || memcmp("Air8000N\0", model, 9) == 0) {
+        if (memcmp("Air8000U\0", model, 9) == 0 || memcmp("Air8000N\0", model, 9) == 0 || memcmp("Air8000WU\0", model, 10) == 0 || memcmp("Air8000WN\0", model, 10) == 0) {
             has_wifi = 1;
             return 1;
         }
-        if (memcmp("Air8000XB\0", model, 10) == 0 || memcmp("Air8000DB\0", model, 10) == 0) {
+        if (memcmp("Air8000XB\0", model, 10) == 0 || memcmp("Air8000DB\0", model, 10) == 0 || memcmp("Air8000AB\0", model, 10) == 0) {
             has_wifi = 1;
             return 1;
         }

+ 6 - 1
luat/modules/luat_lib_pm.c

@@ -479,7 +479,12 @@ static uint8_t get_default_yhm27xx_pin(void)
 {
     char model[32] = {0};
     luat_hmeta_model_name(model);
-    if (memcmp("Air8000\0", model, 8) == 0 || memcmp("Air8000XB\0", model, 10) == 0 || memcmp("Air8000U\0", model, 9) == 0 || memcmp("Air8000N\0", model, 9) == 0) {
+    if (memcmp("Air8000\0", model, 8) == 0 || 
+        memcmp("Air8000XB\0", model, 10) == 0 || 
+        memcmp("Air8000AB\0", model, 10) == 0 || 
+        memcmp("Air8000U\0", model, 9) == 0 || 
+        memcmp("Air8000N\0", model, 9) == 0
+    ) {
         return 152;
     }
     if (memcmp("Air8000G\0", model, 9) == 0) {