Selaa lähdekoodia

fix bus fault

there's one more within the feed after it's initially loaded (click `right` as soon as the feed loads)
jblanked 9 kuukautta sitten
vanhempi
commit
bf33bd2160
2 muutettua tiedostoa jossa 3 lisäystä ja 5 poistoa
  1. 3 4
      app.c
  2. 0 1
      callback/callback.c

+ 3 - 4
app.c

@@ -22,8 +22,7 @@ int32_t main_flip_social(void *p)
     }
 
     // check if board is connected (Derek Jamison)
-    app_instance->fhttp = flipper_http_alloc();
-    if (!app_instance->fhttp)
+    if (!alloc_flipper_http())
     {
         easy_flipper_dialog("FlipperHTTP Error", "The UART is likely busy.\nEnsure you have the correct\nflash for your board then\nrestart your Flipper Zero.");
         return -1;
@@ -32,7 +31,7 @@ int32_t main_flip_social(void *p)
     if (!flipper_http_send_command(app_instance->fhttp, HTTP_CMD_PING))
     {
         FURI_LOG_E(TAG, "Failed to ping the device");
-        flipper_http_free(app_instance->fhttp);
+        free_flipper_http();
         return -1;
     }
 
@@ -72,7 +71,7 @@ int32_t main_flip_social(void *p)
         // }
     }
 
-    flipper_http_free(app_instance->fhttp);
+    free_flipper_http();
 
     // Run the view dispatcher
     view_dispatcher_run(app_instance->view_dispatcher);

+ 0 - 1
callback/callback.c

@@ -161,7 +161,6 @@ static bool flip_social_register_fetch(DataLoaderModel *model)
     }
     if (!model->fhttp->last_response)
     {
-
         return "Failed to login...";
     }
     // check if the username and password are valid