mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
intermediate
This commit is contained in:
parent
f7dcef39ce
commit
0af5b225c4
14
src/JMTest.cpp
Normal file
14
src/JMTest.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "JMTest.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
JMTest jMTest;
|
||||
|
||||
JMTest::JMTest() : concurrency::OSThread("JMTest") {}
|
||||
|
||||
int32_t JMTest::runOnce()
|
||||
{
|
||||
DEBUG_MSG("JMTest::runOnce()\n");
|
||||
|
||||
return (1000);
|
||||
}
|
||||
|
20
src/JMTest.h
Normal file
20
src/JMTest.h
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "concurrency/OSThread.h"
|
||||
#include "configuration.h"
|
||||
#include <Arduino.h>
|
||||
#include <functional>
|
||||
|
||||
|
||||
class JMTest : private concurrency::OSThread
|
||||
{
|
||||
|
||||
public:
|
||||
JMTest();
|
||||
|
||||
protected:
|
||||
|
||||
virtual int32_t runOnce();
|
||||
};
|
||||
|
||||
extern JMTest jMTest;
|
Loading…
Reference in New Issue
Block a user