From 98d3fffd7987078d82283888eb61e69eca0ecafb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 17 Mar 2022 20:53:07 -0400 Subject: [PATCH] palette2: Fix typo (gmcd vs gcmd) Reported by @Ludy87. Signed-off-by: Kevin O'Connor --- klippy/extras/palette2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klippy/extras/palette2.py b/klippy/extras/palette2.py index 93bb4da9..c0289399 100644 --- a/klippy/extras/palette2.py +++ b/klippy/extras/palette2.py @@ -174,7 +174,7 @@ class Palette2: cmd_Disconnect_Help = ("Disconnect from the Palette 2") - def cmd_Disconnect(self, gmcd=None): + def cmd_Disconnect(self, gcmd=None): self.gcode.respond_info("Disconnecting from Palette 2") if self.serial: self.serial.close() @@ -305,7 +305,7 @@ class Palette2: param_drive = gcmd.get_commandline()[5:6] param_distance = gcmd.get_commandline()[8:] except IndexError: - gmcd.respond_info( + gcmd.respond_info( "Incorrect number of arguments for splice command") try: self.omega_splices.append((int(param_drive), param_distance))