mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-15 05:02:21 +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){
|
||||
Serial.println("join network");
|
||||
net.init(&scheduler);
|
||||
net.onReceive(bind(&Sprocket::dispatch,this, _1, _2));
|
||||
//net.onReceive(bind(&Sprocket::dispatch,this, _1, _2));
|
||||
net.connect();
|
||||
return activate(&scheduler, &net);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user