palette2: Fix typo (gmcd vs gcmd)

Reported by @Ludy87.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-03-17 20:53:07 -04:00
parent a43973b0e0
commit 98d3fffd79
1 changed files with 2 additions and 2 deletions

View File

@ -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))