move want_replies into new plugin system
This commit is contained in:
@@ -37,3 +37,13 @@ void NodeInfoPlugin::sendOurNodeInfo(NodeNum dest, bool wantReplies)
|
||||
|
||||
service.sendToMesh(p);
|
||||
}
|
||||
|
||||
|
||||
/** Messages can be received that have the want_response bit set. If set, this callback will be invoked
|
||||
* so that subclasses can (optionally) send a response back to the original sender. Implementing this method
|
||||
* is optional
|
||||
*/
|
||||
void NodeInfoPlugin::sendResponse(NodeNum to) {
|
||||
DEBUG_MSG("Sending user reply\n");
|
||||
sendOurNodeInfo(to, false);
|
||||
}
|
||||
Reference in New Issue
Block a user