Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
bdb9eae0
Commit
bdb9eae0
authored
Nov 30, 2011
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #112 from tjhowse/master
Sends M21 whenever SD Upload or SD Print are used.
parents
f63e3800
daf74897
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pronterface.py
pronterface.py
+2
-0
No files found.
pronterface.py
View file @
bdb9eae0
...
@@ -1206,6 +1206,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -1206,6 +1206,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
listing
=
0
self
.
listing
=
0
self
.
sdfiles
=
[]
self
.
sdfiles
=
[]
self
.
recvlisteners
+=
[
self
.
listfiles
]
self
.
recvlisteners
+=
[
self
.
listfiles
]
self
.
p
.
send_now
(
"M21"
)
self
.
p
.
send_now
(
"M20"
)
self
.
p
.
send_now
(
"M20"
)
def
skein_func
(
self
):
def
skein_func
(
self
):
...
@@ -1359,6 +1360,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -1359,6 +1360,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
return
return
dlg
=
wx
.
TextEntryDialog
(
self
,
(
"Enter a target filename in 8.3 format:"
),
_
(
"Pick SD filename"
)
,
dosify
(
self
.
filename
))
dlg
=
wx
.
TextEntryDialog
(
self
,
(
"Enter a target filename in 8.3 format:"
),
_
(
"Pick SD filename"
)
,
dosify
(
self
.
filename
))
if
dlg
.
ShowModal
()
==
wx
.
ID_OK
:
if
dlg
.
ShowModal
()
==
wx
.
ID_OK
:
self
.
p
.
send_now
(
"M21"
)
self
.
p
.
send_now
(
"M28 "
+
str
(
dlg
.
GetValue
()))
self
.
p
.
send_now
(
"M28 "
+
str
(
dlg
.
GetValue
()))
self
.
recvlisteners
+=
[
self
.
uploadtrigger
]
self
.
recvlisteners
+=
[
self
.
uploadtrigger
]
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment