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