0xchocolate 1 год назад
Родитель
Сommit
2182a00bb2
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      scenes/wifi_marauder_scene_console_output.c

+ 9 - 7
scenes/wifi_marauder_scene_console_output.c

@@ -131,15 +131,17 @@ void wifi_marauder_scene_console_output_on_enter(void* context) {
         // Create files *before* sending command
         // Create files *before* sending command
         // (it takes time to iterate through the directory)
         // (it takes time to iterate through the directory)
         if(app->ok_to_save_logs) {
         if(app->ok_to_save_logs) {
-	    char* resolved_path = sequential_file_resolve_path(app->storage, MARAUDER_APP_FOLDER_LOGS, prefix, "log");
+            char* resolved_path = sequential_file_resolve_path(
+                app->storage, MARAUDER_APP_FOLDER_LOGS, prefix, "log");
             if(resolved_path != NULL) {
             if(resolved_path != NULL) {
                 strcpy(app->log_file_path, resolved_path);
                 strcpy(app->log_file_path, resolved_path);
-		free(resolved_path);
-                if(storage_file_open(app->log_file, app->log_file_path, FSAM_WRITE, FSOM_CREATE_ALWAYS)) {
-		  app->is_writing_log = true;
-		} else {
-		    dialog_message_show_storage_error(app->dialogs, "Cannot open log file");
-		}
+                free(resolved_path);
+                if(storage_file_open(
+                       app->log_file, app->log_file_path, FSAM_WRITE, FSOM_CREATE_ALWAYS)) {
+                    app->is_writing_log = true;
+                } else {
+                    dialog_message_show_storage_error(app->dialogs, "Cannot open log file");
+                }
             } else {
             } else {
                 dialog_message_show_storage_error(app->dialogs, "Cannot resolve log path");
                 dialog_message_show_storage_error(app->dialogs, "Cannot resolve log path");
             }
             }