Kaynağa Gözat

Remove connect WiFi from init

FlipperHTTP auto-conencts
jblanked 1 yıl önce
ebeveyn
işleme
cfb67de5b8
1 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  1. 4 6
      app.c

+ 4 - 6
app.c

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