From 79e5e5b7bddf5bfa5b65dbf2c986d6a78afc16b4 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 22 Jul 2025 18:08:06 +0000 Subject: [PATCH] Fix stop command to reset block state --- cnc_gerbil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnc_gerbil.py b/cnc_gerbil.py index ce61ba9..6ddf528 100644 --- a/cnc_gerbil.py +++ b/cnc_gerbil.py @@ -90,7 +90,7 @@ class touchCNC: bd=self.BORDER) self.start = Button(root, text="START", width=self.buttonsize_x, height=self.buttonsize_y, bg=self.attention, 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) self.pause = Button(root, text="PAUSE", width=self.buttonsize_x, height=self.buttonsize_y, bd=self.BORDER, bg=self.transport, command=self.grblPause)