Skip to content

Conversation

@pedrolamas
Copy link
Member

This issue was introduced with the changes on c1d24c3, caused by the fact that sort was only using a single item instead of a full comparison.

Fixes #1744

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.35.1 milestone Nov 19, 2025
@pedrolamas pedrolamas requested a review from Copilot November 19, 2025 19:51
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Nov 19, 2025
Copilot finished reviewing on behalf of pedrolamas November 19, 2025 19:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a critical bug in the output pins sorting logic where the sort comparison function was incorrectly using only a single parameter instead of comparing two items.

Key changes:

  • Fixed the .sort() callback to properly compare two OutputPin objects instead of just evaluating one
  • Refactored getter calls into named constants for improved readability
  • Proper sorting now places non-PWM pins before PWM pins, with alphabetical fallback

@pedrolamas pedrolamas merged commit 3e14ce7 into fluidd-core:develop Nov 19, 2025
10 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1744 branch November 19, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fans & Outputs dashboard unstable

1 participant