Skip to content

Commit

Permalink
Merge pull request #2000 from meshtastic/develop
Browse files Browse the repository at this point in the history
Develop upstream
  • Loading branch information
thebentern authored Nov 27, 2022
2 parents e7dbbeb + d13a095 commit 97fd5cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/modules/AdminModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ bool AdminModule::handleReceivedProtobuf(const MeshPacket &mp, AdminMessage *r)
}
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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/AdminModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "ProtobufModule.h"

/**
* Routing module for router control messages
* Admin module for admin messages
*/
class AdminModule : public ProtobufModule<AdminMessage>
{
Expand Down

0 comments on commit 97fd5cf

Please sign in to comment.