Przeglądaj źródła

Remove connect WiFi from init

FlipperHTTP auto-connects
jblanked 1 rok temu
rodzic
commit
0bdb458f7a
1 zmienionych plików z 4 dodań i 6 usunięć
  1. 4 6
      app.c

+ 4 - 6
app.c

@@ -12,17 +12,15 @@ int32_t main_flip_store(void *p)
 
     // Initialize the Hello World application
     FlipStoreApp *app = flip_store_app_alloc();
-
-    if (!flipper_http_ping())
+    if (!app)
     {
-        FURI_LOG_E(TAG, "Failed to ping the device");
+        FURI_LOG_E(TAG, "Failed to allocate FlipStoreApp");
         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;
     }