|
@@ -30,16 +30,16 @@ int32_t main_flip_social(void *p)
|
|
|
return -1; // Indicate failure
|
|
return -1; // Indicate failure
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 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;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!flipper_http_ping())
|
|
|
|
|
|
|
+ // send settings and connect wifi
|
|
|
|
|
+ if (!flipper_http_connect_wifi())
|
|
|
{
|
|
{
|
|
|
- FURI_LOG_E(TAG, "Failed to ping the device");
|
|
|
|
|
|
|
+ FURI_LOG_E(TAG, "Failed to connect to WiFi");
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
|
|
|