Browse Source

Heal the watchgog

Blue-Marlin 8 years ago
parent
commit
efe719f898
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      Marlin/buzzer.h

+ 2
- 4
Marlin/buzzer.h View File

@@ -24,8 +24,8 @@
24 24
 #define __BUZZER_H__
25 25
 
26 26
 #include "fastio.h"
27
-#include "watchdog.h"
28 27
 #include "circularqueue.h"
28
+#include "temperature.h"
29 29
 
30 30
 #define TONE_QUEUE_LENGTH 4
31 31
 
@@ -106,9 +106,7 @@ class Buzzer {
106 106
       while (buffer.isFull()) {
107 107
         delay(5);
108 108
         this->tick();
109
-        #if ENABLED(USE_WATCHDOG)
110
-          watchdog_reset();
111
-        #endif
109
+        thermalManager.manage_heater();
112 110
       }
113 111
       this->buffer.enqueue((tone_t) { duration, frequency });
114 112
     }

Loading…
Cancel
Save