Skip to content

Commit f73d8fe

Browse files
committed
qtplasmac: fix button interlocking for torch pulse and ohmic test
1 parent 98f9f0c commit f73d8fe

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.229.223'
1+
VERSION = '1.229.224'
22

33
'''
44
qtplasmac_handler.py
@@ -3800,7 +3800,10 @@ def torch_pulse(self, state):
38003800
def torch_pulse_states(self, state):
38013801
self.set_tab_jog_states(state)
38023802
if not STATUS.is_auto_paused():
3803-
self.set_buttons_state([self.idleList, self.idleOnList, self.idleHomedList], state)
3803+
if STATUS.is_on_and_idle() and STATUS.is_all_homed():
3804+
self.set_buttons_state([self.idleList, self.idleOnList, self.idleHomedList], state)
3805+
else:
3806+
self.set_buttons_state([self.idleList, self.idleOnList], state)
38043807
if self.w.gcode_display.lines() > 1:
38053808
self.w.run.setEnabled(state)
38063809
if state:
@@ -3815,14 +3818,14 @@ def ext_ohmic_test(self, state):
38153818

38163819
def ohmic_test(self, state):
38173820
hal.set_p('plasmac.ohmic-test', '{}'.format(str(state)))
3818-
buttonList = []
3819-
for button in self.idleOnList:
3820-
if button != self.otButton:
3821-
buttonList.append(button)
3821+
buttonList = [button for button in self.idleOnList if button != self.otButton]
38223822
if not STATUS.is_auto_paused():
3823+
if STATUS.is_on_and_idle() and STATUS.is_all_homed():
3824+
self.set_buttons_state([self.idleList, self.idleHomedList, buttonList], not state)
3825+
else:
3826+
self.set_buttons_state([self.idleList, buttonList], not state)
38233827
if self.w.gcode_display.lines() > 1:
38243828
self.w.run.setEnabled(not state)
3825-
self.set_buttons_state([self.idleList, buttonList, self.idleHomedList], not state)
38263829

38273830
def ext_frame_job(self, state):
38283831
if self.frButton and self.w[self.frButton].isEnabled():

share/qtvcp/screens/qtplasmac/versions.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ <h2>QtPlasmaC Version History</h2>
3030
</table>
3131
<br>
3232
<!--- ****** ADD NEXT VERSION BELOW THIS LINE ****** --->
33+
<br><b><u>v1.229.224 2022 Aug 12</u></b>
34+
<ul style="margin:0;">
35+
<li>fix button interlocking for torch pulse and ohmic test when not homed</li>
36+
</ul>
37+
<i>Changes submitted by snowgoer540 (Greg Carl)</i><br>
38+
3339
<br><b><u>v1.229.223 2022 Aug 11</u></b>
3440
<ul style="margin:0;">
3541
<li>make window headers/titles cohesive</li>

0 commit comments

Comments
 (0)