Skip to content

Commit

Permalink
Merge branch 'temp'
Browse files Browse the repository at this point in the history
  • Loading branch information
moggieuk committed Oct 29, 2024
2 parents be15fdb + 7e181c1 commit 8db9231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions panels/mmu_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ def select_unload_extruder(self, widget):
def update_active_buttons(self):
mmu = self._printer.get_stat("mmu")
enabled = mmu['enabled']
servo = mmu['servo']
servo = mmu.get('servo', None)
is_homed = mmu['is_homed']
gate = mmu['gate']
tool = mmu['tool']
action = mmu['action']
filament = mmu['filament']
ui_state = []
if enabled:
ui_state.append("servo_up" if servo == "Up" else "servo_down" if servo == "Down" else "servo_move" if servo == "Move" else "all")
ui_state.extend(['servo_up'] if servo == 'Up' else ['servo_down'] if servo == 'Down' else ['servo_move'] if servo == 'Move' else [] if servo == 'Unknown' else ['servo_up', 'servo_down', 'servo_move'])
if not is_homed:
ui_state.append("not_homed")

Expand Down
1 change: 0 additions & 1 deletion panels/mmu_recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def process_update(self, action, data):
# Dynamically update button sensitivity based on state
def update_active_buttons(self):
mmu = self._printer.get_stat("mmu")
servo = mmu['servo']
enabled = mmu['enabled']
tool = mmu['tool']
ui_state = []
Expand Down

0 comments on commit 8db9231

Please sign in to comment.