Skip to content

[2.0.x] Fix jumping progress bar when ENABLED(LIGHTWEIGHT_UI) and DISABLED(LCD_SET_PROGRESS_MANUALLY)#11439

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
marcio-ao:pr-lightweight-ui-progress-bar-using-uninitialized-variable-2.0.x
Aug 3, 2018
Merged

[2.0.x] Fix jumping progress bar when ENABLED(LIGHTWEIGHT_UI) and DISABLED(LCD_SET_PROGRESS_MANUALLY)#11439
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
marcio-ao:pr-lightweight-ui-progress-bar-using-uninitialized-variable-2.0.x

Conversation

@marcio-ao
Copy link
Contributor

  • When LCD_SET_PROGRESS_MANUALLY was disabled and an SD print was not
    active (i.e. the printer was idle), progress_bar_percent would be initialized to random
    memory from stack and cause progress bar to jump wildly.
  • Also updated conditions in #ifdef to match ultralcd.cpp

- When LCD_SET_PROGRESS_MANUALLY was disabled and an SD print was not
  active (i.e. the printer was idle), progress_bar_percent would read
  uninitialized memory from stack and cause progress bar to jump wildly.
- Also updated conditions in #ifdef to match ultralcd.cpp
@marcio-ao marcio-ao changed the title Fix jumping progress bar. [2.0.x] Fix jumping progress bar when ENABLED(LIGHTWEIGHT_UI) and DISABLED(LCD_SET_PROGRESS_MANUALLY) Aug 2, 2018
@thinkyhead thinkyhead merged commit f222475 into MarlinFirmware:bugfix-2.0.x Aug 3, 2018
@marcio-ao marcio-ao deleted the pr-lightweight-ui-progress-bar-using-uninitialized-variable-2.0.x branch October 9, 2018 17:31
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