雷鸟启动EG810自动开启4G 2328/1
author孙春阳 <snickersun@163.com>
Sat, 20 Sep 2025 07:20:11 +0000 (15:20 +0800)
committer孙春阳 <snickersun@163.com>
Sat, 20 Sep 2025 07:20:11 +0000 (15:20 +0800)
code/sdk/zhihui/utils/custom_utils.c

index f780b89..aedaf56 100644 (file)
@@ -733,19 +733,7 @@ void startup_post_init_task(void)
     system_init_uart();//配置uartat
 #endif
 
-#ifdef BOARD_LEINIAO
-    // zhihui_ppp_init();
-#else
-    if ( cm_poweron_cat1_on_bootup_flag() )
-    {
-        PRINT("PowerOn Cat1 !\r\n");
-        uapi_set4GCapability(true);       
-    }else{
-        PRINT("PowerOff Cat1 !\r\n");
-        uapi_set4GCapability(false);
-    }
-#endif
-    
+
     uint8_t len = 1;
     uapi_get_file_data("user/userdata/timestamp_of_day.bin",&day,&len);
     time(&rawtime);
@@ -758,6 +746,11 @@ void startup_post_init_task(void)
 
     
 #ifdef SUPPORT_CAT1_SERVICE
+
+#ifdef BOARD_LEINIAO
+    PRINT("PowerOn Cat1 !\r\n");
+    uapi_set4GCapability(true);     
+#else
 if ( cm_poweron_cat1_on_bootup_flag() )
 {
     PRINT("PowerOn Cat1 !\r\n");
@@ -766,6 +759,7 @@ if ( cm_poweron_cat1_on_bootup_flag() )
     PRINT("PowerOff Cat1 !\r\n");
     uapi_set4GCapability(false);
 }
+#endif
 #else
 
 #ifdef BOARD_LEINIAO