mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 22:20:37 +00:00
22 lines
437 B
C
22 lines
437 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "MeshModule.h"
|
||
|
|
#include "concurrency/OSThread.h"
|
||
|
|
#include "configuration.h"
|
||
|
|
#include <Arduino.h>
|
||
|
|
#include <functional>
|
||
|
|
|
||
|
|
class GenericThreadModule : private concurrency::OSThread
|
||
|
|
{
|
||
|
|
bool firstTime = 1;
|
||
|
|
|
||
|
|
public:
|
||
|
|
GenericThreadModule();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
unsigned int my_interval = 10000; // interval in millisconds
|
||
|
|
virtual int32_t runOnce() override;
|
||
|
|
};
|
||
|
|
|
||
|
|
extern GenericThreadModule *genericThreadModule;
|