Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtUI Align internal data types with return data types #27542

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

rondlh
Copy link
Contributor

@rondlh rondlh commented Nov 23, 2024

Description

For some ExtUI functions the internal data types and the return data types are inconsistent:
celsius_float_t getTargetTemp_celsius(const heater_t); --> Internally uses celsius_t
celsius_float_t getTargetTemp_celsius(const extruder_t); --> Internally uses celsius_t
float getActualFan_percent(const fan_t); --> internally uses uint8_t
float getTargetFan_percent(const fan_t); --> internally uses uint8_t

This PR changes the return types of the above mentioned functions to align with the internally used data types.

Requirements

None

Benefits

Slightly higher efficiency when using the ExtUI because some data type conversions are not needed anymore.

Related Issues

I posted about this topic before to test the waters:
#27529

For ExtUI functions the internal data type  and the return data types were inconsistent.
@thisiskeithb thisiskeithb linked an issue Nov 23, 2024 that may be closed by this pull request
1 task
@thinkyhead thinkyhead merged commit 095f060 into MarlinFirmware:bugfix-2.1.x Nov 23, 2024
64 checks passed
bsdnomad pushed a commit to bsdnomad/Marlin that referenced this pull request Nov 25, 2024
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.

[BUG] Inconsistent/suboptimal types in ExtUI
2 participants