This commit is contained in:
Ben Meadors
2026-01-29 05:56:19 -06:00
parent b2f2f6b305
commit 415686dd06
3 changed files with 5 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ WatchdogThread::WatchdogThread() : OSThread("Watchdog")
}
void WatchdogThread::feedDog(void)
{
{
digitalWrite(HARDWARE_WATCHDOG_DONE, HIGH);
delay(1);
digitalWrite(HARDWARE_WATCHDOG_DONE, LOW);

View File

@@ -1,18 +1,16 @@
#pragma once
#include <stdint.h>
#include "concurrency/OSThread.h"
#include <stdint.h>
#ifdef HAS_HARDWARE_WATCHDOG
class WatchdogThread : private concurrency::OSThread
{
public:
WatchdogThread();
void feedDog(void);
virtual bool setup();
virtual int32_t runOnce() override;
};
extern WatchdogThread *watchdogThread;