Merge pull request #2000 from meshtastic/develop

Develop upstream
This commit is contained in:
Ben Meadors 2022-11-26 19:16:24 -06:00 committed by GitHub
commit 97fd5cf2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -176,6 +176,12 @@ bool AdminModule::handleReceivedProtobuf(const MeshPacket &mp, AdminMessage *r)
} }
break; break;
} }
// If asked for a response and it is not yet set, generate an 'ACK' response
if (mp.decoded.want_response && !myReply) {
myReply = allocErrorResponse(Routing_Error_NONE, &mp);
}
return handled; return handled;
} }

View File

@ -2,7 +2,7 @@
#include "ProtobufModule.h" #include "ProtobufModule.h"
/** /**
* Routing module for router control messages * Admin module for admin messages
*/ */
class AdminModule : public ProtobufModule<AdminMessage> class AdminModule : public ProtobufModule<AdminMessage>
{ {