mirror of https://github.com/Desuuuu/klipper.git
palette2: Fix typo (gmcd vs gcmd)
Reported by @Ludy87. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a43973b0e0
commit
98d3fffd79
|
@ -174,7 +174,7 @@ class Palette2:
|
||||||
|
|
||||||
cmd_Disconnect_Help = ("Disconnect from the Palette 2")
|
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")
|
self.gcode.respond_info("Disconnecting from Palette 2")
|
||||||
if self.serial:
|
if self.serial:
|
||||||
self.serial.close()
|
self.serial.close()
|
||||||
|
@ -305,7 +305,7 @@ class Palette2:
|
||||||
param_drive = gcmd.get_commandline()[5:6]
|
param_drive = gcmd.get_commandline()[5:6]
|
||||||
param_distance = gcmd.get_commandline()[8:]
|
param_distance = gcmd.get_commandline()[8:]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
gmcd.respond_info(
|
gcmd.respond_info(
|
||||||
"Incorrect number of arguments for splice command")
|
"Incorrect number of arguments for splice command")
|
||||||
try:
|
try:
|
||||||
self.omega_splices.append((int(param_drive), param_distance))
|
self.omega_splices.append((int(param_drive), param_distance))
|
||||||
|
|
Loading…
Reference in New Issue