Pārlūkot izejas kodu

Heal the watchgog

Blue-Marlin 8 gadus atpakaļ
vecāks
revīzija
efe719f898
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2
    4
      Marlin/buzzer.h

+ 2
- 4
Marlin/buzzer.h Parādīt failu

@@ -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
     }

Notiek ielāde…
Atcelt
Saglabāt