Skip to content

Commit

Permalink
Run formatter :)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xchocolate committed Mar 15, 2024
1 parent fa829b2 commit 2182a00
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scenes/wifi_marauder_scene_console_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,17 @@ void wifi_marauder_scene_console_output_on_enter(void* context) {
// Create files *before* sending command
// (it takes time to iterate through the directory)
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) {
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 {
dialog_message_show_storage_error(app->dialogs, "Cannot resolve log path");
}
Expand Down

0 comments on commit 2182a00

Please sign in to comment.