mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 21:34:08 +01:00
don't bind dispatch when joining network
This commit is contained in:
@@ -22,7 +22,7 @@ Sprocket* Sprocket::activate() {
|
|||||||
Sprocket* Sprocket::join(Network& net){
|
Sprocket* Sprocket::join(Network& net){
|
||||||
Serial.println("join network");
|
Serial.println("join network");
|
||||||
net.init(&scheduler);
|
net.init(&scheduler);
|
||||||
net.onReceive(bind(&Sprocket::dispatch,this, _1, _2));
|
//net.onReceive(bind(&Sprocket::dispatch,this, _1, _2));
|
||||||
net.connect();
|
net.connect();
|
||||||
return activate(&scheduler, &net);
|
return activate(&scheduler, &net);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user