Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #212

Merged
merged 2 commits into from
Dec 29, 2024
Merged

Dev #212

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extras/AFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
self.reactor = self.printer.get_reactor()
self.printer.register_event_handler("klippy:connect",self.handle_connect)
self.printer.register_event_handler("klippy:ready", self._handle_ready)

Check failure on line 17 in extras/AFC.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (W293)

extras/AFC.py:17:1: W293 Blank line contains whitespace
self.SPOOL = self.printer.load_object(config,'AFC_spool')
self.ERROR = self.printer.load_object(config,'AFC_error')
self.IDLE = self.printer.load_object(config,'idle_timeout')
Expand Down Expand Up @@ -67,7 +67,7 @@
self.led_trailing = config.get('led_buffer_trailing','0,1,0,0') # LED color to set when buffer is trailing (R,G,B,W) 0 = off, 1 = full brightness.
self.led_buffer_disabled = config.get('led_buffer_disable', '0,0,0,0.25') # LED color to set when buffer is disabled (R,G,B,W) 0 = off, 1 = full brightness.


Check failure on line 70 in extras/AFC.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (W293)

extras/AFC.py:70:1: W293 Blank line contains whitespace
# TOOL Cutting Settings
self.tool = ''
self.tool_cut = config.getboolean("tool_cut", False) # Set to True to enable toolhead cutting
Expand Down Expand Up @@ -151,7 +151,7 @@
self.gcode.register_mux_command('SET_BOWDEN_LENGTH', 'AFC', None, self.cmd_SET_BOWDEN_LENGTH, desc=self.cmd_SET_BOWDEN_LENGTH_help)
self.gcode.register_command('AFC_STATUS', self.cmd_AFC_STATUS, desc=self.cmd_AFC_STATUS_help)
self.gcode.register_mux_command('CALIBRATE_AFC', None, None, self.cmd_CALIBRATE_AFC, desc=self.cmd_CALIBRATE_AFC_help)

Check failure on line 154 in extras/AFC.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (W293)

extras/AFC.py:154:1: W293 Blank line contains whitespace
def _handle_ready(self):
for HUB in self.hubs.keys():
self.hub = HUB
Expand Down Expand Up @@ -1028,7 +1028,7 @@

return '#{:02x}{:02x}{:02x}'.format(*led)

def get_status(self, eventtime):
def get_status(self, eventtime): ## will be removed in near future all status will be from indvdual objects
str = {}
numoflanes = 0
for UNIT in self.units.keys():
Expand All @@ -1053,7 +1053,7 @@
filiment_stat=self.get_filament_status(CUR_LANE).split(':')
str[CUR_UNIT.name][CUR_LANE.name]['filament_status']=filiment_stat[0]
str[CUR_UNIT.name][CUR_LANE.name]['filament_status_led']=filiment_stat[1]
str[CUR_UNIT.name][CUR_LANE.name]['status'] = CUR_LANE.status

Check failure on line 1056 in extras/AFC.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (W291)

extras/AFC.py:1056:78: W291 Trailing whitespace
numoflanes +=1
str[CUR_UNIT.name]['system']={}
str[CUR_UNIT.name]['system']['type'] = CUR_UNIT.type
Expand Down
141 changes: 0 additions & 141 deletions extras/AFC_ERCF.py

This file was deleted.

100 changes: 0 additions & 100 deletions extras/AFC_servo.py

This file was deleted.

Loading