Prevent watchdog reset in setup() (#21776)
Cause `manage_heaters` to only reset the watchdog and return until `setup()` is completed. Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
parent
7957408497
commit
7378afc6d8
6 changed files with 6 additions and 46 deletions
|
@ -35,18 +35,6 @@ void safe_delay(millis_t ms) {
|
|||
thermalManager.manage_heater(); // This keeps us safe if too many small safe_delay() calls are made
|
||||
}
|
||||
|
||||
#if ENABLED(MARLIN_DEV_MODE)
|
||||
void early_safe_delay(millis_t ms) {
|
||||
while (ms > 50) {
|
||||
ms -= 50;
|
||||
delay(50);
|
||||
watchdog_refresh();
|
||||
}
|
||||
delay(ms);
|
||||
watchdog_refresh();
|
||||
}
|
||||
#endif
|
||||
|
||||
// A delay to provide brittle hosts time to receive bytes
|
||||
#if ENABLED(SERIAL_OVERRUN_PROTECTION)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue