mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Merge pull request #4012 from Blue-Marlin/watchdoghealing
Heal the watchdog
This commit is contained in:
commit
c7eeb09e8f
@ -24,8 +24,8 @@
|
|||||||
#define __BUZZER_H__
|
#define __BUZZER_H__
|
||||||
|
|
||||||
#include "fastio.h"
|
#include "fastio.h"
|
||||||
#include "watchdog.h"
|
|
||||||
#include "circularqueue.h"
|
#include "circularqueue.h"
|
||||||
|
#include "temperature.h"
|
||||||
|
|
||||||
#define TONE_QUEUE_LENGTH 4
|
#define TONE_QUEUE_LENGTH 4
|
||||||
|
|
||||||
@ -106,9 +106,7 @@ class Buzzer {
|
|||||||
while (buffer.isFull()) {
|
while (buffer.isFull()) {
|
||||||
delay(5);
|
delay(5);
|
||||||
this->tick();
|
this->tick();
|
||||||
#if ENABLED(USE_WATCHDOG)
|
thermalManager.manage_heater();
|
||||||
watchdog_reset();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
this->buffer.enqueue((tone_t) { duration, frequency });
|
this->buffer.enqueue((tone_t) { duration, frequency });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user