Skip to content

Commit

Permalink
qtplasmac: fix gcodeprops for axes offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
phillc54 committed Sep 2, 2021
1 parent 1c1b0c9 commit 795363a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions share/qtvcp/screens/qtplasmac/qtplasmac_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,10 +1242,11 @@ def set_start_line(self, line):
self.runText = '{}\n{}'.format(txt0, txt1)

def update_gcode_properties(self, props):
self.gcodeProps = props
for axis in 'XY':
if not axis in self.gcodeProps:
self.gcodeProps[axis] = '{0} to {0} = {1}'.format(STATUS.stat.g5x_offset['XY'.index(axis)], 0)
if props:
self.gcodeProps = props
for axis in 'XY':
if not axis in self.gcodeProps:
self.gcodeProps[axis] = '{0} to {0} = {1}'.format(STATUS.stat.g5x_offset['XY'.index(axis)], 0)

def error_update(self, obj, kind, error):
if kind == linuxcnc.OPERATOR_ERROR or kind == linuxcnc.NML_ERROR:
Expand Down
5 changes: 5 additions & 0 deletions share/qtvcp/screens/qtplasmac/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ <h2>QtPlasmaC Version History</h2>
</head>
<body>

<br><b><u>v1.0.80 2021 Sep 2</u></b>
<ul style="margin:0;">
<li>fix gcodeprops for axes offsets</li>
</ul>

<br><b><u>v1.0.79 2021 Sep 2</u></b>
<ul style="margin:0;">
<li>move tooltips to a loadable module</li>
Expand Down

0 comments on commit 795363a

Please sign in to comment.