Add RepRapPro style file opened to virtual printer
This commit is contained in:
1 parent
9c89d45c10
commit
257c4ed8aa
3 files changed
+13
-1
No files matched your search
@@ -290,6 +290,14 @@ The following settings are only relevant to you if you want to do OctoPrint deve
|
|||||||
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
includeCurrentToolInTemps: true
|
includeCurrentToolInTemps: true
|
||||||
|
|
||||||
|
# Whether to include the selected filename in the M23 File opened response.
|
||||||
|
#
|
||||||
|
# True: > M23 filename.gcode
|
||||||
|
# < File opened: filename.gcode Size: 27
|
||||||
|
# False: > M23 filename.gcode
|
||||||
|
# > File opened
|
||||||
|
includeFilenameInOpened: true
|
||||||
|
|
||||||
# The maximum movement speeds of the simulated printer's axes, in mm/s
|
# The maximum movement speeds of the simulated printer's axes, in mm/s
|
||||||
movementSpeed:
|
movementSpeed:
|
||||||
x: 6000
|
x: 6000
|
||||||
|
|||||||
@@ -539,7 +539,10 @@ class VirtualPrinter(object):
|
|||||||
else:
|
else:
|
||||||
self._selectedSdFile = file
|
self._selectedSdFile = file
|
||||||
self._selectedSdFileSize = os.stat(file).st_size
|
self._selectedSdFileSize = os.stat(file).st_size
|
||||||
self._send("File opened: %s Size: %d" % (filename, self._selectedSdFileSize))
|
if settings().getBoolean(["devel", "virtualPrinter", "includeFilenameInOpened"]):
|
||||||
|
self._send("File opened: %s Size: %d" % (filename, self._selectedSdFileSize))
|
||||||
|
else:
|
||||||
|
self._send("File opened")
|
||||||
self._send("File selected")
|
self._send("File selected")
|
||||||
|
|
||||||
def _startSdPrint(self):
|
def _startSdPrint(self):
|
||||||
|
|||||||
@@ -300,6 +300,7 @@ default_settings = {
|
|||||||
"okWithLinenumber": False,
|
"okWithLinenumber": False,
|
||||||
"numExtruders": 1,
|
"numExtruders": 1,
|
||||||
"includeCurrentToolInTemps": True,
|
"includeCurrentToolInTemps": True,
|
||||||
|
"includeFilenameOnOpened": True,
|
||||||
"movementSpeed": {
|
"movementSpeed": {
|
||||||
"x": 6000,
|
"x": 6000,
|
||||||
"y": 6000,
|
"y": 6000,
|
||||||
|
|||||||
Reference in new issue
Block a user