mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-17 21:56:40 +01:00
remove network from activation phase
This commit is contained in:
@@ -23,10 +23,10 @@ class MeshSprocket : public Sprocket {
|
||||
|
||||
}
|
||||
|
||||
Sprocket* activate(Scheduler* scheduler, Network* network) {
|
||||
Sprocket::activate(scheduler, network);
|
||||
net = static_cast<MeshNet*>(network);
|
||||
net->onReceive(bind(&MeshSprocket::dispatch,this, _1, _2));
|
||||
Sprocket* activate(Scheduler* scheduler) {
|
||||
Sprocket::activate(scheduler);
|
||||
//net = static_cast<MeshNet*>(network);
|
||||
//net->onReceive(bind(&MeshSprocket::dispatch,this, _1, _2));
|
||||
|
||||
return this;
|
||||
} using Sprocket::activate;
|
||||
@@ -42,7 +42,7 @@ class MeshSprocket : public Sprocket {
|
||||
}
|
||||
|
||||
void loop() {
|
||||
net->update();
|
||||
//net->update();
|
||||
scheduler.execute();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user