From 4640dd5d1fdac78d88992d3f512ecb98eed96132 Mon Sep 17 00:00:00 2001 From: jimmyjon711 Date: Sat, 7 Dec 2024 18:32:06 -0700 Subject: [PATCH] Fixing linting results --- extras/AFC_prep.py | 5 ++--- extras/AFC_spool.py | 2 +- extras/AFC_stepper.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/extras/AFC_prep.py b/extras/AFC_prep.py index 64dc5e90..ad7c2caa 100644 --- a/extras/AFC_prep.py +++ b/extras/AFC_prep.py @@ -30,8 +30,7 @@ def handle_connect(self): and assigns it to the instance variable `self.AFC`. """ self.AFC = self.printer.lookup_object('AFC') - self.AFC.gcode.register_command('PREP', self.PREP, desc=None) - + self.AFC.gcode.register_command('PREP', self.PREP, desc=None) def _rename_resume(self): """ @@ -71,7 +70,7 @@ def PREP(self, gcmd): self.AFC.extruders={} temp=[] - + self.AFC.tool_cmds={} for PO in self.printer.objects: if 'AFC_stepper' in PO and 'tmc' not in PO: diff --git a/extras/AFC_spool.py b/extras/AFC_spool.py index 97e1fe0a..a3eca1bb 100644 --- a/extras/AFC_spool.py +++ b/extras/AFC_spool.py @@ -138,7 +138,7 @@ def cmd_SET_SPOOLID(self, gcmd): return SpoolID = gcmd.get('SPOOL_ID', '') CUR_LANE = self.printer.lookup_object('AFC_stepper ' + lane) - self.set_spoolID(CURLANE, SpoolID) + self.set_spoolID(CUR_LANE, SpoolID) def set_spoolID(self, CUR_LANE, SpoolID): if self.AFC.spoolman_ip !=None: diff --git a/extras/AFC_stepper.py b/extras/AFC_stepper.py index 8edb1ac7..20fcc0fb 100644 --- a/extras/AFC_stepper.py +++ b/extras/AFC_stepper.py @@ -248,7 +248,7 @@ def prep_callback(self, eventtime, state): else: self.status = None self.AFC.afc_led(self.AFC.led_not_ready, led) - + def do_enable(self, enable): self.sync_print_time() stepper_enable = self.printer.lookup_object('stepper_enable')