Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add writeGcodeFile function to GCodeExport #2159

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

saumyaj3
Copy link
Contributor

Description

Introduce a new method writeGcodeFile to the GCodeExport class, which ensures that the output stream is properly flushed. This function is also called at the end of the Gcode writing process to finalize the file.

Introduce a new method writeGcodeFile to the GCodeExport class, which ensures that the output stream is properly flushed. This function is also called at the end of the Gcode writing process to finalize the file.

NP-470
src/gcodeExport.cpp Outdated Show resolved Hide resolved
Copy link
Member

@rburema rburema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small changes requested :-)

Renamed the function writeGcodeFile to flushOutputStream for clarity. This change more accurately reflects the function's responsibility, which is to flush the output stream instead of managing file writing directly. Updated all references in the source files accordingly.

NP-470
@HellAholic HellAholic merged commit 91a4901 into 5.9 Oct 29, 2024
27 checks passed
@HellAholic HellAholic deleted the NP-470-end-gcodeis-missing-in-neoprep branch October 29, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants