aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2023-06-17 13:57:22 -0400
committerKevinOConnor <kevin@koconnor.net>2023-06-23 20:33:42 -0400
commitb9247810b90938339e87056a5d0f8a7f207d4ea4 (patch)
treeff87dc7b5864f6b3087bc7cfaf1c30926cef4c15 /klippy/extras
parentd32a83345518f4bb632bef9ca2de669b35f0e555 (diff)
downloadkutter-b9247810b90938339e87056a5d0f8a7f207d4ea4.tar.gz
kutter-b9247810b90938339e87056a5d0f8a7f207d4ea4.tar.xz
kutter-b9247810b90938339e87056a5d0f8a7f207d4ea4.zip
virtual_sdcard: reset file position and size to integer zero
This resolves an issue with API server clients that always expect these values be be integers. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/virtual_sdcard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/virtual_sdcard.py b/klippy/extras/virtual_sdcard.py
index 5c5a956f..31f283ff 100644
--- a/klippy/extras/virtual_sdcard.py
+++ b/klippy/extras/virtual_sdcard.py
@@ -119,7 +119,7 @@ class VirtualSD:
self.current_file.close()
self.current_file = None
self.print_stats.note_cancel()
- self.file_position = self.file_size = 0.
+ self.file_position = self.file_size = 0
# G-Code commands
def cmd_error(self, gcmd):
raise gcmd.error("SD write not supported")
@@ -128,7 +128,7 @@ class VirtualSD:
self.do_pause()
self.current_file.close()
self.current_file = None
- self.file_position = self.file_size = 0.
+ self.file_position = self.file_size = 0
self.print_stats.reset()
self.printer.send_event("virtual_sdcard:reset_file")
cmd_SDCARD_RESET_FILE_help = "Clears a loaded SD File. Stops the print "\