MX 2 年之前
父节点
当前提交
4430c8dfbb

二进制
apps/GPIO/evil_portal.fap


+ 0 - 1
non_catalog_apps/flipper-evil-portal/evil_portal_app.c

@@ -109,7 +109,6 @@ int32_t evil_portal_app(void* p) {
 
     view_dispatcher_run(evil_portal_app->view_dispatcher);
 
-    // crashing here
     evil_portal_app_free(evil_portal_app);
 
     return 0;

+ 11 - 0
non_catalog_apps/flipper-evil-portal/evil_portal_uart.c

@@ -78,6 +78,17 @@ static int32_t uart_worker(void* context) {
                         strcat(uart->app->portal_logs, (char*)uart->rx_buf);
                     }
 
+                    if(strlen(uart->app->portal_logs) > 4000) {
+                        write_logs(uart->app->portal_logs);
+                        free(uart->app->portal_logs);
+                        strcpy(uart->app->portal_logs, "");
+                    }
+                } else {
+                    uart->rx_buf[len] = '\0';
+                    if(uart->app->sent_reset == false) {
+                        strcat(uart->app->portal_logs, (char*)uart->rx_buf);
+                    }
+
                     if(strlen(uart->app->portal_logs) > 4000) {
                         write_logs(uart->app->portal_logs);
                         free(uart->app->portal_logs);