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

fix pro_ui delay boot loop issue. #25827

Merged
merged 1 commit into from
May 14, 2023

Conversation

ellensp
Copy link
Contributor

@ellensp ellensp commented May 14, 2023

Description

Since 4528fde PRO_UI causes a boot loop

The issue is the delay. originally delay(50) is now delay((BOOTSCREEN_TIMEOUT) / 22);
The default BOOTSCREEN_TIMEOUT in Configuration_adv.h is 4000 resulting in a float (181.818181818) and causing a watchdog timeout.

Added a millis_t type conversion and used safe_delay and the issue is resolved.

Requirements

PRO_UI

Benefits

Works as expected

Related Issues

#25786

@ellensp ellensp changed the title fix pro_ui delay reboot issue. fix pro_ui delay boot loop issue. May 14, 2023
@thinkyhead
Copy link
Member

That works! We'll recommend to ProUI users to use a BOOTSCREEN_TIMEOUT closer to 1100 to get the original animation speed.

resulting in a float

FYI dividing an integer by an integer in a function call taking an integer doesn't promote to a float.

@thinkyhead thinkyhead merged commit dfa5c1a into MarlinFirmware:bugfix-2.1.x May 14, 2023
@ellensp ellensp deleted the pro_ui-fix branch May 15, 2023 03:38
oponyx pushed a commit to oponyx/Marlin that referenced this pull request May 15, 2023
oponyx pushed a commit to oponyx/Marlin that referenced this pull request May 15, 2023
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 17, 2023
tspiva pushed a commit to tspiva/Marlin that referenced this pull request May 25, 2023
Andy-Big pushed a commit to Andy-Big/Marlin_FB_Reborn that referenced this pull request Jul 15, 2023
Andy-Big pushed a commit to Andy-Big/Marlin_FB_Reborn that referenced this pull request Jul 18, 2023
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