diff --git a/barista/barista.ino b/barista/barista.ino index fa4bd14..be73525 100644 --- a/barista/barista.ino +++ b/barista/barista.ino @@ -3,6 +3,7 @@ #include "ntc.h" #include "pinout.h" +#include enum logic { ON = 1, @@ -326,6 +327,7 @@ void do_output(const struct state *st) void setup() { + wdt_disable(); Serial.begin(9600); Serial.println("Booting"); @@ -342,6 +344,7 @@ void setup() relay(PIN_PUMP, OFF); Serial.println("Ready"); + wdt_enable(WDTO_250MS); } void loop() @@ -351,4 +354,5 @@ void loop() do_output(&g_st); delay(5); + wdt_reset(); }