Skip to content

fix: store macro names casing as-is#1683

Merged
pedrolamas merged 1 commit into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-1682
May 26, 2025
Merged

fix: store macro names casing as-is#1683
pedrolamas merged 1 commit into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-1682

Conversation

@pedrolamas

@pedrolamas pedrolamas commented May 23, 2025

Copy link
Copy Markdown
Member

When listing the currently available macros, keep the name casing as-is so it can be correctly used with SET_GCODE_VARIABLE.

When searching for macros by name, sorting macros by name, or checking for stored settings, use case-insensitive comparison (normally, just use toLowerCase() on the name and call it a day as that is faster then using .localeCompare() method)

Fixes #1682

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.34.3 milestone May 23, 2025
@pedrolamas pedrolamas added the GH - Bug Something isn't working label May 23, 2025
@pedrolamas pedrolamas merged commit ed6bd18 into fluidd-core:develop May 26, 2025
5 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1682 branch May 26, 2025 09:57
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.

SET_GCODE_VARIABLE fails due to case-sensitive MACRO parameter

1 participant