Skip to content

Commit

Permalink
Flush gcode writer before renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dalegaard committed Jan 13, 2022
1 parent 8e4991a commit af6e625
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tool/src/cmd/post_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ impl PostProcessCmd {
}
}

// Flush output file before renaming
wr.flush().expect("IO error");
std::fs::rename(&dst_path, &self.filename).expect("rename failed");
}

Expand Down

0 comments on commit af6e625

Please sign in to comment.