You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found while investigating a bootloop with simulated timers. I'm not sure whether this is of concern since it clearly works in practice, but seems like it has the potential for odd problems:
In setup() in Marlin_main.cpp:
line 1010 of ultralcd_init() calls backlight_init() which requests _delay(10) after setting LCD_BL_PIN.
However, timer2 (whose TOIE is used for the delay) is not actually initialized until tp_init() (Line 1241) of the same function.
The text was updated successfully, but these errors were encountered:
Found while investigating a bootloop with simulated timers. I'm not sure whether this is of concern since it clearly works in practice, but seems like it has the potential for odd problems:
In setup() in Marlin_main.cpp:
line 1010 of ultralcd_init() calls backlight_init() which requests _delay(10) after setting LCD_BL_PIN.
However, timer2 (whose TOIE is used for the delay) is not actually initialized until tp_init() (Line 1241) of the same function.
The text was updated successfully, but these errors were encountered: