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

Loading…
Cancel
Save