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

UltraLCD enhancements (fan as percent, add backlash menu) #13519

Merged

Conversation

marcio-ao
Copy link
Contributor

@marcio-ao marcio-ao commented Mar 28, 2019

  • Added UltraLCD editor type for showing full scale (0-255) uint8_t values as percentages (0%-100%)
  • Show fan speed editor as percentage for consistency with status screen
  • Changed backlash correction amount from float to uint8_t (save 3 bytes SRAM)
  • Added backlash menu to UltraLCD (makes use of new UltraLCD percentage editor)

- Show fan speeds as a percentage from 0% to 100% rather than 0 to 255
- Saves 3 bytes of SRAM.
- Consistent with fan speed.
@marcio-ao marcio-ao changed the title Added UltraLCD code for showing percentages; fan speed as percentage UltraLCD enhancements (fan as percent, add backlash menu) Mar 29, 2019
@@ -395,21 +395,21 @@ void menu_temperature() {
//
#if FAN_COUNT > 0
#if HAS_FAN0
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(uint8, MSG_FAN_SPEED FAN_SPEED_1_SUFFIX, &thermalManager.lcd_tmpfan_speed[0], 0, 255, thermalManager.lcd_setFanSpeed0);
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(percent, MSG_FAN_SPEED FAN_SPEED_1_SUFFIX, &thermalManager.lcd_tmpfan_speed[0], 0, 255, thermalManager.lcd_setFanSpeed0);
#if ENABLED(EXTRA_FAN_SPEED)
Copy link
Member

Choose a reason for hiding this comment

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

Causing #14975.

@marcio-ao marcio-ao deleted the pr-ultralcd-percentage branch September 23, 2019 15:18
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.

3 participants