mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 14:10:53 +00:00
* compiling, untested * use INCLUDE not EXLUDE for option to include module * protobuf update * working genericthread module Update protobufs * use EXCLUDE style instead of INCLUDE * Update Modules.cpp --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
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;
|