mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 17:30:37 +01:00
19 lines
319 B
C
19 lines
319 B
C
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <TaskSchedulerDeclarations.h>
|
||
|
|
|
||
|
|
class RestartHelperClass {
|
||
|
|
public:
|
||
|
|
RestartHelperClass();
|
||
|
|
void init(Scheduler& scheduler);
|
||
|
|
void triggerRestart();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
Task _rebootTask;
|
||
|
|
};
|
||
|
|
|
||
|
|
extern RestartHelperClass RestartHelper;
|