create scheduler instance

This commit is contained in:
2018-11-08 13:58:07 +01:00
parent f290ec6197
commit c75c4f24f3
3 changed files with 12 additions and 8 deletions

View File

@@ -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;