Skip to content

Commit

Permalink
Ensure power panic info gets written to persistant storage
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ authored and ondratu committed Dec 13, 2023
1 parent 5e40f2e commit 01ac829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
0.8.0alpha3
* Improve message shown when preparing a power panic recovery
* Fix print stats not ignoring the skipped part of gcode after PP
* Ensure power panic info is written to persistant storage

0.8.0alpha2
* Fix active tool not re-setting to None when told to
Expand Down
1 change: 1 addition & 0 deletions prusa/link/printer_adapter/file_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def write_file_stats(self, file_path, message_number, gcode_number):
)
with open(self.data.pp_file_path, "w", encoding="UTF-8") as pp_file:
pp_file.write(json.dumps(data.dict()))
os.fsync(pp_file) # make sure this gets written to storage

def serial_message_number_changed(self, message_number):
"""Updates the pairing of the FW message number to gcode line number
Expand Down

0 comments on commit 01ac829

Please sign in to comment.