|
|
@@ -18,7 +18,7 @@ char *flip_library_parse_cat_fact()
|
|
|
|
|
|
char *flip_library_parse_dog_fact()
|
|
|
{
|
|
|
- return get_json_array_value("facts", 0, fhttp.last_response, 128);
|
|
|
+ return get_json_array_value("facts", 0, fhttp.last_response, 256);
|
|
|
}
|
|
|
|
|
|
char *flip_library_parse_quote()
|
|
|
@@ -289,6 +289,7 @@ void view_draw_callback_random_facts(Canvas *canvas, void *model)
|
|
|
{
|
|
|
FURI_LOG_E(TAG, "Failed to send request");
|
|
|
flip_library_request_error(canvas);
|
|
|
+ fhttp.state = ISSUE;
|
|
|
return;
|
|
|
}
|
|
|
fhttp.state = RECEIVING;
|
|
|
@@ -468,6 +469,7 @@ void view_draw_callback_random_facts(Canvas *canvas, void *model)
|
|
|
if (!random_fact_request_success)
|
|
|
{
|
|
|
FURI_LOG_E(TAG, "Failed to send request");
|
|
|
+ fhttp.state = ISSUE;
|
|
|
return;
|
|
|
}
|
|
|
fhttp.state = RECEIVING;
|
|
|
@@ -585,6 +587,8 @@ void view_draw_callback_dictionary_run(Canvas *canvas, void *model)
|
|
|
if (!random_fact_request_success)
|
|
|
{
|
|
|
FURI_LOG_E(TAG, "Failed to send request");
|
|
|
+ flip_library_request_error(canvas);
|
|
|
+ fhttp.state = ISSUE;
|
|
|
return;
|
|
|
}
|
|
|
fhttp.state = RECEIVING;
|