瀏覽代碼

Remove connect WiFi from init

FlipperHTTP auto-connects
jblanked 1 年之前
父節點
當前提交
8b9581e2c2
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 二進制
      .DS_Store
  2. 4 6
      app.c

二進制
.DS_Store


+ 4 - 6
app.c

@@ -12,17 +12,15 @@ int32_t flip_library_app(void *p)
 
     // Initialize the FlipLibrary application
     FlipLibraryApp *app = flip_library_app_alloc();
-
-    if (!flipper_http_ping())
+    if (!app)
     {
-        FURI_LOG_E(TAG, "Failed to ping the device");
+        FURI_LOG_E(TAG, "Failed to allocate FlipLibraryApp");
         return -1;
     }
 
-    // send settings and connect wifi
-    if (!flipper_http_connect_wifi())
+    if (!flipper_http_ping())
     {
-        FURI_LOG_E(TAG, "Failed to connect to WiFi");
+        FURI_LOG_E(TAG, "Failed to ping the device");
         return -1;
     }