mirror of
https://github.com/meshtastic/firmware.git
synced 2026-02-03 15:42:02 +00:00
Trunk
This commit is contained in:
@@ -10,7 +10,7 @@ WatchdogThread::WatchdogThread() : OSThread("Watchdog")
|
||||
}
|
||||
|
||||
void WatchdogThread::feedDog(void)
|
||||
{
|
||||
{
|
||||
digitalWrite(HARDWARE_WATCHDOG_DONE, HIGH);
|
||||
delay(1);
|
||||
digitalWrite(HARDWARE_WATCHDOG_DONE, LOW);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user