Fix stop command to reset block state

This commit is contained in:
openhands 2025-07-22 18:08:06 +00:00
parent 0308d47967
commit 79e5e5b7bd

View File

@ -90,7 +90,7 @@ class touchCNC:
bd=self.BORDER) bd=self.BORDER)
self.start = Button(root, text="START", width=self.buttonsize_x, height=self.buttonsize_y, bg=self.attention, self.start = Button(root, text="START", width=self.buttonsize_x, height=self.buttonsize_y, bg=self.attention,
command=self.grblWrite, bd=self.BORDER) command=self.grblWrite, bd=self.BORDER)
self.stop = Button(root, text="STOP", width=self.buttonsize_x, height=self.buttonsize_y, bd=self.BORDER, bg=self.transport, self.stop = Button(root, text="STOP", width=self.buttonsize_x, height=self.buttonsize_y, bd=self.BORDER, bg=self.transport,\n command=self.reset_block_state)
command=self.grblStop) command=self.grblStop)
self.pause = Button(root, text="PAUSE", width=self.buttonsize_x, height=self.buttonsize_y, bd=self.BORDER, bg=self.transport, self.pause = Button(root, text="PAUSE", width=self.buttonsize_x, height=self.buttonsize_y, bd=self.BORDER, bg=self.transport,
command=self.grblPause) command=self.grblPause)