mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
create scheduler instance
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#ifndef __SPROCKET_H__
|
||||
#define __SPROCKET_H__
|
||||
|
||||
#define _TASK_SLEEP_ON_IDLE_RUN
|
||||
#define _TASK_STD_FUNCTION
|
||||
|
||||
#include <TaskSchedulerDeclarations.h>
|
||||
//#include <TaskScheduler.h>
|
||||
#include <Arduino.h>
|
||||
@@ -23,7 +26,7 @@ class Sprocket : public Mediator {
|
||||
protected:
|
||||
// TODO move scheduler out of Sprocket
|
||||
// => see difference between standalone and mesh sprochet usage of scheduler
|
||||
Scheduler scheduler;
|
||||
Scheduler* scheduler;
|
||||
Network network;
|
||||
private:
|
||||
SprocketMessage currentMessage;
|
||||
|
||||
Reference in New Issue
Block a user