Skip to content

Remove Redundant '%' while drawing cutter power - #27105

Merged
thinkyhead merged 1 commit into
MarlinFirmware:bugfix-2.1.xfrom
toxicpsion:bugfix-2.1.x
May 19, 2024
Merged

Remove Redundant '%' while drawing cutter power#27105
thinkyhead merged 1 commit into
MarlinFirmware:bugfix-2.1.xfrom
toxicpsion:bugfix-2.1.x

Conversation

@toxicpsion

Copy link
Copy Markdown
Contributor

Description

cutter_power2str (as macro from spindle_laser_types.h -> pcttostrpctrj) already returns a '%'-terminated string, no need to add one while rendering UI.

Requirements

HAS_MARLINUI_HD44780
HAS_CUTTER
CUTTER_UNIT_IS(PERCENT)

Benefits

Cosmetic Fix

_cutter_power2str (as defined in spindle_laser_types.h -> pcttostrpctrj ) already returns a %-terminated value, no need to add one.
@thinkyhead
thinkyhead merged commit 0e2bd06 into MarlinFirmware:bugfix-2.1.x May 19, 2024
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants