Skip to content

bugfix: split fan/speed slider callbacks to fix gcode dispatch collision#212

Open
gmmcosta15 wants to merge 1 commit intodevfrom
bugfix/slider-split
Open

bugfix: split fan/speed slider callbacks to fix gcode dispatch collision#212
gmmcosta15 wants to merge 1 commit intodevfrom
bugfix/slider-split

Conversation

@gmmcosta15
Copy link
Copy Markdown
Collaborator

  • Feature
  • Bug fix
  • Code refactor
  • Documentation

Description

  • controlTab.on_slider_change: now handles fan_generic objects only, dispatches SET_FAN_SPEED.
  • tunePage: add _on_speed_slider_change for print speed (M220); on_slider_change handles fan_generic only.
  • printTab: minor cleanup following the callback split.

Motivation

When a fan_generic was named "speed", both controlTab and tunePage would dispatch conflicting gcodes (SET_FAN_SPEED and M220) on the same slider event. Splitting the callbacks eliminates the collision and ensures the correct gcode is always sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant